[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbxSNCKNfous7h2dBQ_AW9KS9qyxPfPxOO=3PMDsDxcng@mail.gmail.com>
Date: Sun, 19 Mar 2023 22:20:35 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Lizhe <sensor1010@....com>
Cc: brgl@...ev.pl, geert+renesas@...der.be, info@...ux.net,
rjui@...adcom.com, bcm-kernel-feedback-list@...adcom.com,
f.fainelli@...il.com, sbranden@...adcom.com, shc_work@...l.ru,
j-keerthy@...com, hoan@...amperecomputing.com,
fancer.lancer@...il.com, orsonzhai@...il.com,
baolin.wang@...ux.alibaba.com, zhang.lyra@...il.com,
shawnguo@...nel.org, s.hauer@...gutronix.de, kernel@...gutronix.de,
festevam@...il.com, linux-imx@....com, kaloz@...nwrt.org,
khalasa@...p.pl, keguang.zhang@...il.com, daniel@...ngy.jp,
romain.perier@...il.com, matthias.bgg@...il.com,
angelogioacchino.delregno@...labora.com, thierry.reding@...il.com,
u.kleine-koenig@...gutronix.de, grygorii.strashko@...com,
ssantosh@...nel.org, khilman@...nel.org, mani@...nel.org,
ludovic.desroches@...rochip.com, andy@...nel.org,
palmer@...belt.com, paul.walmsley@...ive.com, jonathanh@...dia.com,
sathyanarayanan.kuppuswamy@...ux.intel.com,
michal.simek@...inx.com, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mips@...r.kernel.org, linux-mediatek@...ts.infradead.org,
linux-pwm@...r.kernel.org, linux-omap@...r.kernel.org,
linux-unisoc@...ts.infradead.org, linux-riscv@...ts.infradead.org,
linux-tegra@...r.kernel.org
Subject: Re: [PATCH v2] drivers/gpio : Remove redundant platform_set_drvdata().
On Sun, Mar 19, 2023 at 1:02 PM Lizhe <sensor1010@....com> wrote:
> platform_set_drvdata() is redundant in these functions.
> the purpose of calling this function is to place data
> in *driver_data. but the data is not retrieved in these
> functions
>
> Signed-off-by: Lizhe <sensor1010@....com>
You have to also ascertain that the data is not used elsewhere
like in some callbacks or even in other drivers in some odd cases.
Yours,
Linus Walleij
Powered by blists - more mailing lists