ARM: pxa/raumfeld: use PROPERTY_ENTRY_U32() directly
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jan 2018 17:37:08 +0000 (19:37 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 7 Mar 2018 13:19:47 +0000 (14:19 +0100)
Instead of using PROPERTY_ENTRY_INTEGER() with explicitly supplied type,
use PROPERTY_ENTRY_U32() dedicated macro.

It will help modify internals of built-in device properties API.

No functional change intended.

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/raumfeld.c

index 4d5d05cf87d69b513b337632ed6c3127a5ead6cf..d3927bd4e1b8802a6acc9c13ded1dcc0f743c999 100644 (file)
@@ -378,9 +378,9 @@ static struct gpiod_lookup_table raumfeld_rotary_gpios_table = {
 };
 
 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),
+       PROPERTY_ENTRY_U32("rotary-encoder,steps-per-period", 24),
+       PROPERTY_ENTRY_U32("linux,axis",                      REL_X),
+       PROPERTY_ENTRY_U32("rotary-encoder,relative_axis",    1),
        { },
 };