Commit 431b68a
pinctrl: provide pinmux_generic_add_pinfunction()
Several drivers call pinmux_generic_add_function() passing it the
contents of struct pinfunction as first three arguments. We can make
this shorter by simply providing an interface allowing to pass the
address of struct pinfunction directly when adding a new function.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/20250709-pinctrl-gpio-pinfuncs-v2-2-b6135149c0d9@linaro.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>1 parent dd47155 commit 431b68a
2 files changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
877 | 892 | | |
878 | 893 | | |
879 | 894 | | |
880 | 895 | | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
| 896 | + | |
885 | 897 | | |
886 | 898 | | |
887 | 899 | | |
| |||
891 | 903 | | |
892 | 904 | | |
893 | 905 | | |
894 | | - | |
| 906 | + | |
895 | 907 | | |
896 | 908 | | |
897 | 909 | | |
| |||
902 | 914 | | |
903 | 915 | | |
904 | 916 | | |
905 | | - | |
| 917 | + | |
906 | 918 | | |
907 | 919 | | |
908 | 920 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
0 commit comments