Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3740719pxu; Mon, 30 Nov 2020 09:19:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwD9rIrrSFhycZIcKA4/Kyz6N8VhR/SeXim/Fq1Q4CDF8bZcG6MY5gPJFN2g9FP4IK9wqdC X-Received: by 2002:a50:fd8c:: with SMTP id o12mr22370405edt.22.1606756775223; Mon, 30 Nov 2020 09:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606756775; cv=none; d=google.com; s=arc-20160816; b=Jc8ypVqk22ozv2iX0bRWDIQvPec8PpxhJ6GNV8gLj2AeBvv7ddsUx7NWNHsYhI9atj p5yLlSG0s5iJaSp36I8blfqB22IT1Usx8Po8G8F7DUoZrlhgWdLo3q3kx08Vh/7Htt+P J+/5SUMUGeqC7HlbVuoWhxHnhwFChof4hHeidI1npZH2j/9rnan7WWsGzmcB7mdOQ0qv x1WO2XJXxkJpHomlqXJNReMSysgItuE3p1Nc4GdSh8hpndzFE0taaMj2/cD+W43lCTWy MSk0tO5KskuHKIu7VT2iVN5NX4L+zTrQMrzGEFVTdtI+nAi1jp7tMYV9aSVa3IUyLkwY bLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xyuaUQNlZ+Wr7lRf3nZ/9q8iV++QMK7ihsb3scweM/4=; b=q/Zc3rjL8FtqB+Chp1LDQBG3s3NEOMNtelGcGRJDFuZy1T+zLelBDg2183EOadGqlP v8y59kQB5Cl5r1jrAUr2Ticj8mmyffppYru2ZquTmP18UsqahLiJm0FiTEoNZR+ql933 2HG7tNnJzQ7yc7lnwDHs6k0TwRVha8wcwAD1nQB2NwQD20fh6gipLq8xCzuZQZn+U4VD 91bDZLZLbKzUcBVHz6kooi0EbwLUZmrXvuS5Kumo4ltqhDejYd1CBrryHMy9qMIiXILY x0dXeqnjINq83Y27Dq9k7OF+AP0zsliTUZYsDllKfQgyQPuJUuAmK8Y8c41b8WuX7D52 Hsow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LJo645cu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si11192203ejb.749.2020.11.30.09.19.08; Mon, 30 Nov 2020 09:19:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LJo645cu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387398AbgK3RQv (ORCPT + 99 others); Mon, 30 Nov 2020 12:16:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbgK3RQv (ORCPT ); Mon, 30 Nov 2020 12:16:51 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F519C0613CF; Mon, 30 Nov 2020 09:16:11 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id x24so10818000pfn.6; Mon, 30 Nov 2020 09:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xyuaUQNlZ+Wr7lRf3nZ/9q8iV++QMK7ihsb3scweM/4=; b=LJo645cu6Dc21q6H5tXRhmsxSmDTrudgcosig/TUZDRaag8cGD9K422OZUx3VsCxyv 4F7IJt+uc3vU7/vMMSaBd1+XYk0zsuc12yQ0l42z/m2fjw1q9ynqj9mmu6+kpy2f6F5g h1Q2AJfLsmbue83/DIxV9TrVf+Lu1v8i7ovW4iHKnGU3I/ibmIyFQe4jn8Ip296IkuwF C8f+PAlfM+zWccJJ1FNB4hCf3vKibwulko4llqzM+ESRqQwxnt9zNVRo/eWtnejuFXw3 fpadnP5Y/znsCDxRR326J2afDg4yLeCIgyGTsSvCbID374EGQyOCOdvnvRdXyo7dHMKJ ub3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xyuaUQNlZ+Wr7lRf3nZ/9q8iV++QMK7ihsb3scweM/4=; b=GWcMS5y0RnyaWC1ZyHsP2zX4eqrlw0XnC0RXw3Ef3KYl/MG9C1v9rSEValinvj27Z/ 1rRmU3LI1zXoLDVYVdI3Sm3kNKOhOrgz/Dra2tPpg0eQbwG3mwoy4TPpD+Hk1CyVpNGZ 7NTYjilwl9t9F6A4w5pmDrlAZ5taKm/T08rKqpn4I/s1FaG0JnnB5N6ne0HRhtmwFlef ust8HHnTwo7+GeTbFnprpLN8I7JsxtWKRKz9DC6lixiFWJ0OtgftMYtBnM9fwjCUymkC P3ptgPXZtRrkWnrNuhTLt5gP2srPxSsGlTUv43iBCrYFuwzEpPdq0swgKuPenm+CcVeL bV5Q== X-Gm-Message-State: AOAM533GGAf1YsR0uBwWTFgkptR1caW5cfKo2I6enhJu/ltkKUYVGted BtQ8GvkjS/8+TkyMN3VWwaSBK0wQSLJL42pP+vE= X-Received: by 2002:a63:1514:: with SMTP id v20mr18729291pgl.203.1606756570899; Mon, 30 Nov 2020 09:16:10 -0800 (PST) MIME-Version: 1.0 References: <20201119142104.85566-1-alexandru.ardelean@analog.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 30 Nov 2020 19:16:59 +0200 Message-ID: Subject: Re: [PATCH] gpio: xra1403: remove unneeded spi_set_drvdata() To: Bartosz Golaszewski Cc: Alexandru Ardelean , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Nandor Han , Linus Walleij Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 6:37 PM Bartosz Golaszewski wrote: > > On Thu, Nov 19, 2020 at 4:04 PM Andy Shevchenko > wrote: > > > > On Thu, Nov 19, 2020 at 4:17 PM Alexandru Ardelean > > wrote: > > > > > > There is no matching spi_get_drvdata() call in the driver, so there is no > > > need to do spi_set_drvdata(). This looks like it probably was copied from a > > > driver that used both spi_set_drvdata() & spi_get_drvdata(). > > > > While above luckily (*) okay it may not always be the case. > > > > *) it can be paired with dev_get_drvdata() which is usual for PM callbacks. > > > > With amended commit message > > Reviewed-by: Andy Shevchenko > > > > I applied this patch. I wasn't sure exactly how you want the commit > message to be changed - it sounds pretty clear to me so I took it. For example, by adding " or dev_get_drvdata()" to the end. -- With Best Regards, Andy Shevchenko