mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
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 <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
5a35b85c2d
commit
3dabc19acf
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue