]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Use devm_pinctrl_register_mappings()
authorThomas Richard <thomas.richard@bootlin.com>
Mon, 9 Jun 2025 12:34:49 +0000 (14:34 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 13 Jun 2025 09:33:23 +0000 (12:33 +0300)
commit05651018f04ab00a84da8a47feb3a605ec1c7e41
tree1a549db00aeb1cb0c387440da32e0677783b9a29
parent6418a8504187dc7f5b6f9d0649c03e362cb0664b
platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: Use devm_pinctrl_register_mappings()

Use devm_pinctrl_register_mappings(), so the core automatically unregisters
the pinctrl mappings. It makes the code easier to read.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250609-lenovo-yoga-tab2-pro-1380-fastcharger-devm-pinctrl-register-mappings-v1-1-fb601f2b80f6@bootlin.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/lenovo/yoga-tab2-pro-1380-fastcharger.c