From: Laurent Pinchart Date: Wed, 28 Nov 2012 18:22:18 +0000 (+0100) Subject: sh-pfc: Make struct pinmux_gpio enum_id field const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=051fae4bec226b1b139e70d2416b57ce344dba19;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sh-pfc: Make struct pinmux_gpio enum_id field const This ensures that the field is not modified, which is a prerequisite for the rest of the PFC refactoring work. Signed-off-by: Laurent Pinchart Acked-by: Linus Walleij --- diff --git a/drivers/pinctrl/sh-pfc/sh_pfc.h b/drivers/pinctrl/sh-pfc/sh_pfc.h index e15039504a1c..6ed7ab9d56d4 100644 --- a/drivers/pinctrl/sh-pfc/sh_pfc.h +++ b/drivers/pinctrl/sh-pfc/sh_pfc.h @@ -36,7 +36,7 @@ enum { #define PINMUX_FLAG_DREG (0x3f << PINMUX_FLAG_DREG_SHIFT) struct pinmux_gpio { - pinmux_enum_t enum_id; + const pinmux_enum_t enum_id; pinmux_flag_t flags; const char *name; };