summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-pxa/raumfeld.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c
index 16ffd01daff1..5a941bd3dbed 100644
--- a/arch/arm/mach-pxa/raumfeld.c
+++ b/arch/arm/mach-pxa/raumfeld.c
@@ -378,18 +378,11 @@ static struct gpiod_lookup_table raumfeld_rotary_gpios_table = {
},
};
-static u32 raumfeld_rotary_encoder_steps = 24;
-static u32 raumfeld_rotary_encoder_axis = REL_X;
-static u32 raumfeld_rotary_encoder_relative_axis = 1;
-
static struct property_entry raumfeld_rotary_properties[] = {
- { "rotary-encoder,steps-per-period",
- DEV_PROP_U32, 1, &raumfeld_rotary_encoder_steps, },
- { "linux,axis",
- DEV_PROP_U32, 1, &raumfeld_rotary_encoder_axis, },
- { "rotary-encoder,relative_axis",
- DEV_PROP_U32, 1, &raumfeld_rotary_encoder_relative_axis, },
- { NULL }
+ 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),
+ { },
};
static struct property_set raumfeld_rotary_property_set = {