pinctrl: Introduce struct pinfunction and PINCTRL_PINFUNCTION() macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Dec 2022 12:42:33 +0000 (14:42 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 30 Dec 2022 08:22:37 +0000 (10:22 +0200)
commit443a0a0f0cf4f432c7af6654b7f2f920d411d379
treef540ea068167b43fb25ec7c8df027eee49fdbbe3
parented153b0793ba8a3b11d909a78ff48b16878bd2f3
pinctrl: Introduce struct pinfunction and PINCTRL_PINFUNCTION() macro

There are many pin control drivers define their own data type for
pin function representation which is the same or embed the same data
as newly introduced one. Provide the data type and convenient macro
for all pin control drivers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
include/linux/pinctrl/pinctrl.h