]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: pxa/raumfeld: mark rotary encoder properties as __initconst
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Jan 2017 07:46:50 +0000 (23:46 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 Jul 2017 20:37:14 +0000 (13:37 -0700)
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 <dmitry.torokhov@gmail.com>
arch/arm/mach-pxa/raumfeld.c

index e2c97728b3c6b2890431cdd017e118c4f2ce7e57..9d662fed03ec7ae7fbf05bd22775185b00e571b6 100644 (file)
@@ -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),