* [PATCH] gpio: exar: remove unneeded platform_set_drvdata() call
@ 2023-07-19 9:39 Andrei Coardos
2023-07-19 15:30 ` Andy Shevchenko
2023-07-29 14:05 ` Bartosz Golaszewski
0 siblings, 2 replies; 3+ messages in thread
From: Andrei Coardos @ 2023-07-19 9:39 UTC (permalink / raw)
To: linux-kernel, linux-gpio
Cc: andy, brgl, linus.walleij, Andrei Coardos, Alexandru Ardelean
The platform_set_drvdata() was needed when the driver had an explicit
remove function.
That function got removed a while back, so we don't need to keep a pointer
(on 'dev->driver_data') for the private data of the driver anymore.
Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
---
drivers/gpio/gpio-exar.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c
index df1bdaae441c..5170fe7599cd 100644
--- a/drivers/gpio/gpio-exar.c
+++ b/drivers/gpio/gpio-exar.c
@@ -217,8 +217,6 @@ static int gpio_exar_probe(struct platform_device *pdev)
if (ret)
return ret;
- platform_set_drvdata(pdev, exar_gpio);
-
return 0;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gpio: exar: remove unneeded platform_set_drvdata() call
2023-07-19 9:39 [PATCH] gpio: exar: remove unneeded platform_set_drvdata() call Andrei Coardos
@ 2023-07-19 15:30 ` Andy Shevchenko
2023-07-29 14:05 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2023-07-19 15:30 UTC (permalink / raw)
To: Andrei Coardos
Cc: linux-kernel, linux-gpio, brgl, linus.walleij, Alexandru Ardelean
On Wed, Jul 19, 2023 at 12:39:23PM +0300, Andrei Coardos wrote:
> The platform_set_drvdata() was needed when the driver had an explicit
> remove function.
> That function got removed a while back, so we don't need to keep a pointer
> (on 'dev->driver_data') for the private data of the driver anymore.
Reviewed-by: Andy Shevchenko <andy@kernel.org>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gpio: exar: remove unneeded platform_set_drvdata() call
2023-07-19 9:39 [PATCH] gpio: exar: remove unneeded platform_set_drvdata() call Andrei Coardos
2023-07-19 15:30 ` Andy Shevchenko
@ 2023-07-29 14:05 ` Bartosz Golaszewski
1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2023-07-29 14:05 UTC (permalink / raw)
To: Andrei Coardos
Cc: linux-kernel, linux-gpio, andy, linus.walleij, Alexandru Ardelean
On Wed, Jul 19, 2023 at 11:41 AM Andrei Coardos <aboutphysycs@gmail.com> wrote:
>
> The platform_set_drvdata() was needed when the driver had an explicit
> remove function.
> That function got removed a while back, so we don't need to keep a pointer
> (on 'dev->driver_data') for the private data of the driver anymore.
>
> Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
> ---
> drivers/gpio/gpio-exar.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c
> index df1bdaae441c..5170fe7599cd 100644
> --- a/drivers/gpio/gpio-exar.c
> +++ b/drivers/gpio/gpio-exar.c
> @@ -217,8 +217,6 @@ static int gpio_exar_probe(struct platform_device *pdev)
> if (ret)
> return ret;
>
> - platform_set_drvdata(pdev, exar_gpio);
> -
> return 0;
> }
>
> --
> 2.34.1
>
Applied, thanks!
Bart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-29 14:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-19 9:39 [PATCH] gpio: exar: remove unneeded platform_set_drvdata() call Andrei Coardos
2023-07-19 15:30 ` Andy Shevchenko
2023-07-29 14:05 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).