Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2492651rdb; Tue, 12 Sep 2023 03:48:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiY9cvCUdJkA6Q3M/iOCNf004nihA2KAzh4F1OE3a12Ehjd51AnRLyV7r/bNLxy4lbJM1K X-Received: by 2002:a54:4411:0:b0:3a3:ed22:5a4a with SMTP id k17-20020a544411000000b003a3ed225a4amr13449873oiw.40.1694515718385; Tue, 12 Sep 2023 03:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694515718; cv=none; d=google.com; s=arc-20160816; b=W6uOFsTH9Y+4Is5AJo4soA9Tf4uQ3GqARqIzDz/Yw/YZ+NYWlM8jFjUNGyAaamKg2i zYnmrjb/Ih/WiRFdh+fnvkhnTXqn+NZQ6/1SKCcNrWP2sZkpZlXQHjZSjHhtmbgQqHVF 0zk2+4/JBDbbMVJ2DhGfG8CzfLFdJ59BL45wD239aYI6m0QrqdehpbERwA7QuLaSBtJz dPm1pRMx2+TCQIZK6mUMdkd5QUMC5BEKQuMvkot1sS82CXWRMpj0m5oZPoR/j2kYuEWj Ev5igwWLbLdCCIkonK1dRjporDQW5OtBXSodwyzsLe/U8GfTl9YBqZMngzTF9HMc3aRk 46tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=3A13B6YQYNqGNW/L54wSJfEKgBpaFwNfdOuKHWWz+KU=; fh=vvN+9ue8t6SBHVKXtUD7MWCwgB4AuyAAMjW2r5GrVLs=; b=CHEKhCq1mporjG89GF6VJG6whZc7UQe95VsAGAZealWwZJg7pGeNu7E1WJhvCuHMeS TTIUdztlXLj5SQKukAoVRxdwiVqF3Q5J64JUMa8FjK3QrGqbZXHBgD6rsoDLHfq1+S7y WnTnK2XiU8hqSA4ktJsj+8pdUcbttpa0B2r0cddAecE1ASTWuWkREePEAyu69a4BsPRP edto6dclzAPY+lUOX8Uo2oVAt8jdrnBhF/aFKQHyIfL4BJ+s9z/iX+FO1ZPv1+R6M/9/ JEL2hs3J/7NynVMfDejJcN0fMMIGdTxb7AFFaKbly+D5PLuNp59NrM9CdSqKMtUQGl3E OKSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e189-20020a6369c6000000b0054fdb18c877si7760242pgc.607.2023.09.12.03.48.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 03:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8880780D6AE7; Tue, 12 Sep 2023 03:37:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234224AbjILKhG (ORCPT + 99 others); Tue, 12 Sep 2023 06:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234177AbjILKgx (ORCPT ); Tue, 12 Sep 2023 06:36:53 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C446144B9; Tue, 12 Sep 2023 03:35:33 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="378246800" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="378246800" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 03:35:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="917389147" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="917389147" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 03:35:30 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qg0jv-008YvE-39; Tue, 12 Sep 2023 13:35:27 +0300 Date: Tue, 12 Sep 2023 13:35:27 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Linus Walleij , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [RFT PATCH 2/3] gpio: eic-sprd: use a helper variable for &pdev->dev Message-ID: References: <20230912094519.22769-1-brgl@bgdev.pl> <20230912094519.22769-2-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912094519.22769-2-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 03:37:31 -0700 (PDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email On Tue, Sep 12, 2023 at 11:45:18AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Instead of dereferencing pdev everywhere, just store the address of the > underlying struct device in a local variable. ... > - return devm_add_action_or_reset(&pdev->dev, > - sprd_eic_unregister_notifier, > + return devm_add_action_or_reset(dev, sprd_eic_unregister_notifier, > &sprd_eic->irq_nb); Ping-pong style detected: Lines added / modified by previous patch in the same series got modified again. If you look at how I do that, I introduce the temporary variable with my new code and then reuse it later on. OTOH, I see that the first one is supposed to be backported (?) in such case perhaps it's fine. -- With Best Regards, Andy Shevchenko