Skip to contentSkip to conversation

Input: docs - use PROPERTY_ENTRY_U32() directly

PATCH Applied Andy Shevchenko 2 participants 2 messages Jan 22, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: docs - use PROPERTY_ENTRY_U32() directly

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.

---
 Documentation/input/devices/rotary-encoder.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/input/devices/rotary-encoder.rst +3 -3
index b07b20a295ac..810ae02bdaa0 100644
@@ -108,9 +108,9 @@ example below:
 	};
 
 	static const struct property_entry rotary_encoder_properties[] __initconst = {
-		PROPERTY_ENTRY_INTEGER("rotary-encoder,steps-per-period", u32, 24),
-		PROPERTY_ENTRY_INTEGER("linux,axis",			  u32, ABS_X),
-		PROPERTY_ENTRY_INTEGER("rotary-encoder,relative_axis",	  u32, 0),
+		PROPERTY_ENTRY_U32("rotary-encoder,steps-per-period", 24),
+		PROPERTY_ENTRY_U32("linux,axis",		      ABS_X),
+		PROPERTY_ENTRY_U32("rotary-encoder,relative_axis",    0),
 		{ },
 	};
 
Signature · 1 line
2.15.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Andy Shevchenko

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.

Applied, thank you.

Quoted 24 lines
---
 Documentation/input/devices/rotary-encoder.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/input/devices/rotary-encoder.rst +3 -3
index b07b20a295ac..810ae02bdaa0 100644
@@ -108,9 +108,9 @@ example below:
 	};
 
 	static const struct property_entry rotary_encoder_properties[] __initconst = {
-		PROPERTY_ENTRY_INTEGER("rotary-encoder,steps-per-period", u32, 24),
-		PROPERTY_ENTRY_INTEGER("linux,axis",			  u32, ABS_X),
-		PROPERTY_ENTRY_INTEGER("rotary-encoder,relative_axis",	  u32, 0),
+		PROPERTY_ENTRY_U32("rotary-encoder,steps-per-period", 24),
+		PROPERTY_ENTRY_U32("linux,axis",		      ABS_X),
+		PROPERTY_ENTRY_U32("rotary-encoder,relative_axis",    0),
 		{ },
 	};
 
Signature · 1 line
2.15.1
Signature · 1 line
Dmitry