mirror of https://github.com/torvalds/linux.git
We currently duplicate the entire struct pinfunction object in pinmux_generic_add_pinfunction(). While this is inevitable when the arguments come in split through pinmux_generic_add_function(), users of pinmux_generic_add_pinfunction() will typically pass addresses of structures in .rodata, meaning we can try to avoid the duplication with the help from kmemdup_const(). To that end: don't wrap the entire struct pinfunction in struct function_desc but rather just store the address. Tested-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| pinctrl-imx-scmi.c | ||
| pinctrl-imx.c | ||
| pinctrl-imx.h | ||
| pinctrl-imx1-core.c | ||
| pinctrl-imx1.c | ||
| pinctrl-imx1.h | ||
| pinctrl-imx6dl.c | ||
| pinctrl-imx6q.c | ||
| pinctrl-imx6sl.c | ||
| pinctrl-imx6sll.c | ||
| pinctrl-imx6sx.c | ||
| pinctrl-imx6ul.c | ||
| pinctrl-imx7d.c | ||
| pinctrl-imx7ulp.c | ||
| pinctrl-imx8dxl.c | ||
| pinctrl-imx8mm.c | ||
| pinctrl-imx8mn.c | ||
| pinctrl-imx8mp.c | ||
| pinctrl-imx8mq.c | ||
| pinctrl-imx8qm.c | ||
| pinctrl-imx8qxp.c | ||
| pinctrl-imx8ulp.c | ||
| pinctrl-imx23.c | ||
| pinctrl-imx25.c | ||
| pinctrl-imx27.c | ||
| pinctrl-imx28.c | ||
| pinctrl-imx35.c | ||
| pinctrl-imx50.c | ||
| pinctrl-imx51.c | ||
| pinctrl-imx53.c | ||
| pinctrl-imx91.c | ||
| pinctrl-imx93.c | ||
| pinctrl-imxrt1050.c | ||
| pinctrl-imxrt1170.c | ||
| pinctrl-mxs.c | ||
| pinctrl-mxs.h | ||
| pinctrl-scu.c | ||
| pinctrl-vf610.c | ||