From: Geert Uytterhoeven Date: Mon, 12 Mar 2018 13:42:09 +0000 (+0100) Subject: pinctrl: sh-pfc: Add SH_PFC_PIN_GROUP_ALIAS() X-Git-Tag: v5.15~9150^2~21^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43a51cd5d623c6142ca050dffc25d5e9972a7a12;p=platform%2Fkernel%2Flinux-starfive.git pinctrl: sh-pfc: Add SH_PFC_PIN_GROUP_ALIAS() Add a macro to refer to another pin group with a different name. This will be used to rename wrongly-named pin groups, while retaining backwards compatibility with old DTBs. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index 62d3680..7fad897 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -39,13 +39,14 @@ struct sh_pfc_pin { unsigned int configs; }; -#define SH_PFC_PIN_GROUP(n) \ +#define SH_PFC_PIN_GROUP_ALIAS(alias, n) \ { \ - .name = #n, \ + .name = #alias, \ .pins = n##_pins, \ .mux = n##_mux, \ .nr_pins = ARRAY_SIZE(n##_pins), \ } +#define SH_PFC_PIN_GROUP(n) SH_PFC_PIN_GROUP_ALIAS(n, n) struct sh_pfc_pin_group { const char *name;