]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
reset: gpio: simplify fallback device matching
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 6 Mar 2026 17:22:47 +0000 (18:22 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 9 Mar 2026 09:17:50 +0000 (10:17 +0100)
commitad9d28e68f4f9d15b9bde15e1ab79a4f85eff60e
tree64c66192fb8342dffcc3dbb28e59477428f912f7
parenta9b95ce36de4422761dc2a2afc01e1781801800c
reset: gpio: simplify fallback device matching

The of_args field of struct reset_controller_dev was introduced to allow
the reset-gpio driver to pass the phandle arguments back to reset core.
The thing is: it doesn't even have to do it. The core sets the platform
data of the auxiliary device *AND* has access to it later on during the
lookup. This means the field is unneeded and all can happen entirely in
reset core.

Remove the field from the public header and don't set it in
reset-gpio.c. Retrieve the platform data in reset core when needed
instead.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
drivers/reset/reset-gpio.c
include/linux/reset-controller.h