提交 3dabc19a 编写于 作者: D Dmitry Torokhov

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: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 5a35b85c
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册