From: Dmitry Torokhov Date: Mon, 23 Jan 2017 07:46:50 +0000 (-0800) Subject: ARM: pxa/raumfeld: mark rotary encoder properties as __initconst X-Git-Tag: v4.14-rc1~4^2~1^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3dabc19acf79fa77e3a59a43b764b24d5be453be;p=platform%2Fkernel%2Flinux-exynos.git ARM: pxa/raumfeld: mark rotary encoder properties as __initconst device_add_properties() performs deep copy of supplied array of properties, which means that we can discard the original array. Signed-off-by: Dmitry Torokhov --- diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c index e2c9772..9d662fe 100644 --- a/arch/arm/mach-pxa/raumfeld.c +++ b/arch/arm/mach-pxa/raumfeld.c @@ -377,7 +377,7 @@ static struct gpiod_lookup_table raumfeld_rotary_gpios_table = { }, }; -static struct property_entry raumfeld_rotary_properties[] = { +static const struct property_entry raumfeld_rotary_properties[] __initconst = { PROPERTY_ENTRY_INTEGER("rotary-encoder,steps-per-period", u32, 24), PROPERTY_ENTRY_INTEGER("linux,axis", u32, REL_X), PROPERTY_ENTRY_INTEGER("rotary-encoder,relative_axis", u32, 1),