Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp379448pxb; Tue, 15 Feb 2022 16:00:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxorCUQsmtT9QHPiDOpHrVQsT+shp0xdlwgW11DbzPxe45MGmEMSdpnlrVihMDMqCYM9TEL X-Received: by 2002:a17:90b:4a48:b0:1b9:11a8:1cb9 with SMTP id lb8-20020a17090b4a4800b001b911a81cb9mr7171320pjb.7.1644969640946; Tue, 15 Feb 2022 16:00:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644969640; cv=none; d=google.com; s=arc-20160816; b=XyTR+dwT5jiaL89QyuIexbz2MnkgtnFbi0YYvJMWgfFyXSWohRSTuatSGKHlsjfAD/ ideAgKiueKkNH+Cg+WK6VuD5WQTa7nvBXYgZIINxyNoFzYj3Vv2AZn9ju9SWeis/iSWN su0NVSD78BQLflS1hvdHggbprZ+rNNWw2ToZRE2OWlifzHuz1iuotMfZR6d2I3DcfDK9 fkVDLRHaCl3dh95dWwibbOzLE3UlWKBWaJGSDZrAW8oBABaMHNdUG2AwTi4UA7a2FCN5 vpvFgq4uB7mhjp+ppajA2OSUKMGN4cxVOS3LbVLTtOSsOVPNZKaP6hph7hF2/Rh4gBVI HZaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8rxiLZRrx6DkhO6JhZGnTb7or4pWWLsRk06cZxBhHFc=; b=wtcWLNAhxqrAX3s3wO/tDDHFm+FhyrsvFsDhE3FHNMDo0ZrA3/1uN1a2K+j+WJuFnt h6DCgYyBaCygYl6CwJ2cA98XgBA069vJklegY6pFiFJpSMg7cFKzqeO5wQcvSSeTvacB 7IMX81DjTD3XXUX7TX9KRuYN2WSiFq2jznEsqu0I3FMqDJFMgPW+zahV5jiPkrWnu2/d oYOhfrCV0mgqp5RfZZIJ4UJ08N+KeSSHFOIoNWWzi07TxWlFrrgHhw3GCOTWFELdvh6J l3YfJ2/1JwHzlN1WYd8C2P0mcQs/W9HALc6SFQRbsfwxlB/OFY5LG4pba8LnzqeNySL4 zNCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Dwo/ynMF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t187si31585973pfb.352.2022.02.15.16.00.23; Tue, 15 Feb 2022 16:00:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Dwo/ynMF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234319AbiBOVzC (ORCPT + 99 others); Tue, 15 Feb 2022 16:55:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232593AbiBOVzB (ORCPT ); Tue, 15 Feb 2022 16:55:01 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2860BB7C6A; Tue, 15 Feb 2022 13:54:51 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id h125so202882pgc.3; Tue, 15 Feb 2022 13:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8rxiLZRrx6DkhO6JhZGnTb7or4pWWLsRk06cZxBhHFc=; b=Dwo/ynMFZvHDoVx9x9jqxJwX1hdBWQ+BjNyU4pjsx/aduWpeqyfV5R9+REia4gssoc GHncUzKURrDB2DDuIDYe59dgMtaSIxvPp8EsH25xTNAiCl4UuvhN+rlx1QVvO1o1Rj1d y7vUJTiqGx3p8JERAoqVYMHvq9qswFVqrKBHr7g4HN+WyWh5XXojJ4oVaHL8MMCxrnoy mQ/TF0esGTTaPj3F4VqwqjU71ptziclr7PQstPC07Pi5UXuLx4FOGHLUJkc/Tko8zJ73 xYHphpmFaOvLapoA9w2zBhXAFAEI6sEfIPkD6qDMm+DQWfbeJWq9chJDnknpZlr8ITDR 7BHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8rxiLZRrx6DkhO6JhZGnTb7or4pWWLsRk06cZxBhHFc=; b=kof5znjXU9d2uUk7548F521JD0iISlFd5NVSoQronsbt3o5D0c8cVMKBrpIkW+2NYA MU0HBKm4Jyn8G74QbVN2TJ1fEtv/x6CKBgIgBA9zyrou3J2OVGQBfl67bMhM4OnMBglR o+VVdVovjpMSFciIv348If/p5lRNqvv1XZpM6kOjcqBew11/D76PiOBTMVtg6omX12pF uv0rANWB6cneLhQRajsZQvxhDzLQlH1X11cbi3VnAilzRPmZOVqRtUAiIIPjpBlJ5u2q qjCb5hEdIOBF2ZNxblNQHbvyGCcNB2sv+Xi70kBaU4pl96qx439Aj8gIRaKLMkbnkrRx 6Pbw== X-Gm-Message-State: AOAM533P5vcIigTYDsF7A/eAzIx+6Q0ojFsDXA8h6yVk/x7xy6tUd+ig OWm21ymvfexFdV8Jc5GPVqFkq0kk4a4= X-Received: by 2002:a63:89c7:: with SMTP id v190mr792552pgd.208.1644962090354; Tue, 15 Feb 2022 13:54:50 -0800 (PST) Received: from google.com ([2620:15c:202:201:4e4a:b0ff:e926:40e2]) by smtp.gmail.com with ESMTPSA id y20sm22134080pfi.87.2022.02.15.13.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 13:54:48 -0800 (PST) Date: Tue, 15 Feb 2022 13:54:46 -0800 From: Dmitry Torokhov To: Danilo Krummrich Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH 1/4] input: ps2-gpio: refactor struct ps2_gpio_data Message-ID: References: <20220215160208.34826-1-danilokrummrich@dk-develop.de> <20220215160208.34826-2-danilokrummrich@dk-develop.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220215160208.34826-2-danilokrummrich@dk-develop.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Danilo, On Tue, Feb 15, 2022 at 05:02:05PM +0100, Danilo Krummrich wrote: > +static inline struct ps2_gpio_data * > +to_ps2_gpio_data(struct delayed_work *dwork) > +{ > + struct ps2_gpio_data_tx *txd = container_of(dwork, > + struct ps2_gpio_data_tx, > + work); > + > + return container_of(txd, struct ps2_gpio_data, tx); > +} > + > static void ps2_gpio_tx_work_fn(struct work_struct *work) > { > struct delayed_work *dwork = to_delayed_work(work); > - struct ps2_gpio_data *drvdata = container_of(dwork, > - struct ps2_gpio_data, > - tx_work); This can simply be written as: struct ps2_gpio_data *drvdata = container_of(dwork, struct ps2_gpio_data, tx.work); No need to resubmit unless you disagree - I can change it on my side. Thanks. -- Dmitry