Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2706771rdb; Tue, 12 Sep 2023 09:38:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYgu84xrgto9X6V3AroF+o0g/cVvKxFHc3X4O67/Stnsw28pxim6uES47ZY1e8RMj8cntF X-Received: by 2002:a05:6a20:4422:b0:134:d4d3:f0a5 with SMTP id ce34-20020a056a20442200b00134d4d3f0a5mr18023888pzb.2.1694536687792; Tue, 12 Sep 2023 09:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694536687; cv=none; d=google.com; s=arc-20160816; b=AFm1u4QtRNdbDcdPY2xZ2lJxL47abMKVE218el7e0g6VBl6ShrvDTIznrLUhxD2a3g ILeCOxXCyC2lMMI6CAWolxGl1ipV+ZfKhNzN1ZKUeIQv5y9CRElGRjqGzrx1bt2Ec27R tSe31KcHydLdr6YLXec4elGFw5Lf49BtopU0/1y6fVdq/1j8IqspBN0mhIMR3LRAKz9C M/w+j7kdAkRFueWd5G87gQD1A7dNQRYFEMF+v1D+66nb/zKbTFmBobpLGGQyyqiD2tVw hVXfEBKBNqi91t2uUljLAjLTsBtOFdGQZBeTHASOzC4g5w19RAd09ee7alD3emHmyfTS FRug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kLhc8iMbw9INgbW/oH4hagu1vdQLEQ9RJpYm3m2tpso=; fh=eGyJ17EgLV6t+ruDg8zmlRb9VCeamRgH/axM33BHs6M=; b=NbY+8ebunrPPieErIbkipq/gtMdCU8SC2Nhnr8GYgGFQiAsR8+x1OyRA8KCy5kXuAp 2PPLNR4tKUkIPcvseIimzHxWmwNycfh4cER9mkJHYMH7jgqsNxcTQ+6IHmcdMpD4cEaj 5YHIF/0RH0lShxfBNXLPyA+INkwUWB4a9tuy1hdhJBJBw0vWzlDudkM2HS5uNMyCaxFj 84d9zzCiWEzBVydV0WCZvJ8SUfhVf3M1Sxdh/OX1JJD1VDNv/8+GE4/mBm1rtovUaq6f tAcjw4vFpHf6RGm6MvIsWjFL9nIeBsCtFpBX9PiOZESxaeagm0xk9G8PMq4uIZXjOgS1 VT6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=EJ14mE1s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id p21-20020a634f55000000b0057404ce2fc8si7916199pgl.529.2023.09.12.09.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 09:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=EJ14mE1s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0151B80A52AE; Tue, 12 Sep 2023 04:24:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234490AbjILLYS (ORCPT + 99 others); Tue, 12 Sep 2023 07:24:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234474AbjILLYN (ORCPT ); Tue, 12 Sep 2023 07:24:13 -0400 Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1114E1719 for ; Tue, 12 Sep 2023 04:24:01 -0700 (PDT) Received: by mail-ua1-x931.google.com with SMTP id a1e0cc1a2514c-7a512434bc9so4020232241.0 for ; Tue, 12 Sep 2023 04:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1694517840; x=1695122640; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kLhc8iMbw9INgbW/oH4hagu1vdQLEQ9RJpYm3m2tpso=; b=EJ14mE1s0P/favfYDo/bVmr8+1V8vvlJGd4UVr0X4Tw1QUqcxvcKqUfsC39zX3r9u9 g3n4N/dwm76jVeLqHLwMACBERcV5XQF6BCNCLa2SCIp8CJ+jccdwOv3a4jDTfmZ6BGtv Z7rkmDHfWomg/jYJFEDwKAI+DtChyx9o/bSdMgAeI5NuNGyQtP7HgsW7pHk0UIKzRk2m Vz7wjjUKn1mRt/WQqKaQNSiY237QOzu6WxO/icRxjPQiDGHJ12MBMWwsEnl142JQaXUD S0RitoGKNPcuo5hYnXmG69R+wFI1fSElt/Bkgk2o3kv9tKlzeoZ2NRYyOmSQX4CE/RUf jBtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694517840; x=1695122640; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kLhc8iMbw9INgbW/oH4hagu1vdQLEQ9RJpYm3m2tpso=; b=UJrwugXPQSvItX/Fdn0B07RX5X/M0jnslooZ8m0TgyI/eJxxavdrp8B/nDOgG8OjCz UILA+piH/1ACpcVIzsOCJWzWPer7n82aAtuSRhi+fO38jAux0SJTTBb6lwFhwhAxNoFb Gg1MPjhY8bGAyWWIoSrdVLrFs6OAVki6oFOWeEj7+qZ6nb7WXYX3SXVrltRLrHbp4EAO xvSjuGKJ9S9hMgNsgik9dmXrxKP9t+bNwJ96IKcEzIn24oDw8qnS1J3Q8dKax4mfcjnK e4+l/6cXksYvcUK+50uewHtI7ifW7QQPs+5+gVxJt7xJNwqjoTwnF3KMhCFOWN7hdpYO gcsg== X-Gm-Message-State: AOJu0YwHv9XePYvMLVZjDOJ5ZVWtvEY52PG4HTbyYTrBz7Zr2RE5SCgD xUqbjjD64XH7CcPYeP+skTH0vNjHAPtc4lMSkJdViQ== X-Received: by 2002:a67:e918:0:b0:44d:453c:a837 with SMTP id c24-20020a67e918000000b0044d453ca837mr1156694vso.11.1694517840104; Tue, 12 Sep 2023 04:24:00 -0700 (PDT) MIME-Version: 1.0 References: <20230912094519.22769-1-brgl@bgdev.pl> <20230912094519.22769-2-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 12 Sep 2023 13:23:49 +0200 Message-ID: Subject: Re: [RFT PATCH 2/3] gpio: eic-sprd: use a helper variable for &pdev->dev To: Andy Shevchenko Cc: Linus Walleij , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 (morse.vger.email [0.0.0.0]); Tue, 12 Sep 2023 04:24:29 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 morse.vger.email On Tue, Sep 12, 2023 at 12:35=E2=80=AFPM Andy Shevchenko = wrote: > > 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 c= ase > perhaps it's fine. I would typically do the same but the fix comes first in series. Bart