gpio: max77620: remove unneeded platform_set_drvdata() call
authorAndrei Coardos <aboutphysycs@gmail.com>
Tue, 25 Jul 2023 12:36:23 +0000 (15:36 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 1 Aug 2023 19:15:23 +0000 (21:15 +0200)
commitceac51b1ee43532d35d0182117b326306bcfe7f4
tree3b310cccc2b2c4a586b2ae4a6ef726819107052d
parentc518e7dc64573e3e3a196e8b79caa4f77c612366
gpio: max77620: remove unneeded platform_set_drvdata() call

This function call is not required because no counterpart
platform_get_drvdata() call is present to leverage the private data of
the driver.
Since the private data is confined to this driver file, external access
is not feasible.
The use of this function appears redundant in the current context of the
driver's implementation.

Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-max77620.c