* [PATCH] HID: Debug: Add labels for HID Sensor Usages @ 2014-05-14 0:54 Reyad Attiyat [not found] ` <CA+BWVUTOHr-sktWtpGL7-1wTdz2suDWFjcyX=fFU+JHjs5+TTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Reyad Attiyat @ 2014-05-14 0:54 UTC (permalink / raw) To: linux-iio-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-input, Srinivas Pandruvada --- drivers/hid/hid-debug.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 53b771d..25cc71c 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -272,6 +272,85 @@ static const struct hid_usage_entry hid_usage_table[] = { {0, 0xAA, "Shared_Parameter_Blocks"}, {0, 0xAB, "Create_New_Effect_Report"}, {0, 0xAC, "RAM_Pool_Available"}, + { 0x20, 0, "Sensor" }, + { 0x20, 0x01, "Sensor" }, + { 0x20, 0x10, "Biometric" }, + { 0x20, 0x11, "BiometricHumanPresence" }, + { 0x20, 0x12, "BiometricHumanProximity" }, + { 0x20, 0x13, "BiometricHumanTouch" }, + { 0x20, 0x20, "Electrical" }, + { 0x20, 0x21, "ElectricalCapacitance" }, + { 0x20, 0x22, "ElectricalCurrent" }, + { 0x20, 0x23, "ElectricalPower" }, + { 0x20, 0x24, "ElectricalInductance" }, + { 0x20, 0x25, "ElectricalResistance" }, + { 0x20, 0x26, "ElectricalVoltage" }, + { 0x20, 0x27, "ElectricalPoteniometer" }, + { 0x20, 0x28, "ElectricalFrequency" }, + { 0x20, 0x29, "ElectricalPeriod" }, + { 0x20, 0x30, "Environmental" }, + { 0x20, 0x31, "EnvironmentalAtmosphericPressure" }, + { 0x20, 0x32, "EnvironmentalHumidity" }, + { 0x20, 0x33, "EnvironmentalTemperature" }, + { 0x20, 0x34, "EnvironmentalWindDirection" }, + { 0x20, 0x35, "EnvironmentalWindSpeed" }, + { 0x20, 0x40, "Light" }, + { 0x20, 0x41, "LightAmbientLight" }, + { 0x20, 0x42, "LightConsumerInfrared" }, + { 0x20, 0x50, "Location" }, + { 0x20, 0x51, "LocationBroadcast" }, + { 0x20, 0x52, "LocationDeadReckoning" }, + { 0x20, 0x53, "LocationGPS" }, + { 0x20, 0x54, "LocationLookup" }, + { 0x20, 0x55, "LocationOther" }, + { 0x20, 0x56, "LocationStatic" }, + { 0x20, 0x57, "LocationTriangulation" }, + { 0x20, 0x60, "Mechanical" }, + { 0x20, 0x61, "MechanicalBooleanSwitch" }, + { 0x20, 0x62, "MechanicalBooleanSwitchArray" }, + { 0x20, 0x63, "MechanicalMultivalueSwitch" }, + { 0x20, 0x64, "MechanicalForce" }, + { 0x20, 0x65, "MechanicalPressure" }, + { 0x20, 0x66, "MechanicalStrain" }, + { 0x20, 0x67, "MechanicalWeight" }, + { 0x20, 0x68, "MechanicalHapticVibrator" }, + { 0x20, 0x69, "MechanicalHallEffectSwitch" }, + { 0x20, 0x70, "Motion" }, + { 0x20, 0x71, "MotionAccelerometer1D" }, + { 0x20, 0x72, "MotionAccelerometer2D" }, + { 0x20, 0x73, "MotionAccelerometer3D" }, + { 0x20, 0x74, "MotionGyrometer1D" }, + { 0x20, 0x75, "MotionGyrometer2D" }, + { 0x20, 0x76, "MotionGyrometer3D" }, + { 0x20, 0x77, "MotionMotionDetector" }, + { 0x20, 0x78, "MotionSpeedometer" }, + { 0x20, 0x79, "MotionAccelerometer" }, + { 0x20, 0x7A, "MotionGyrometer" }, + { 0x20, 0x80, "Orientation" }, + { 0x20, 0x81, "OrientationCompass1D" }, + { 0x20, 0x82, "OrientationCompass2D" }, + { 0x20, 0x83, "OrientationCompass3D" }, + { 0x20, 0x84, "OrientationInclinometer1D" }, + { 0x20, 0x85, "OrientationInclinometer2D" }, + { 0x20, 0x86, "OrientationInclinometer3D" }, + { 0x20, 0x87, "OrientationDistance1D" }, + { 0x20, 0x88, "OrientationDistance2D" }, + { 0x20, 0x89, "OrientationDistance3D" }, + { 0x20, 0x8A, "OrientationDeviceOrientation" }, + { 0x20, 0x8B, "OrientationCompass" }, + { 0x20, 0x8C, "OrientationInclinometer" }, + { 0x20, 0x8D, "OrientationDistance" }, + { 0x20, 0x90, "Scanner" }, + { 0x20, 0x91, "ScannerBarcode" }, + { 0x20, 0x91, "ScannerRFID" }, + { 0x20, 0x91, "ScannerNFC" }, + { 0x20, 0xA0, "Time" }, + { 0x20, 0xA1, "TimeAlarmTimer" }, + { 0x20, 0xA2, "TimeRealTimeClock" }, + { 0x20, 0xE0, "Other" }, + { 0x20, 0xE1, "OtherCustom" }, + { 0x20, 0xE2, "OtherGeneric" }, + { 0x20, 0xE3, "OtherGenericEnumerator" }, { 0x84, 0, "Power Device" }, { 0x84, 0x02, "PresentStatus" }, { 0x84, 0x03, "ChangeStatus" }, -- 1.9.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <CA+BWVUTOHr-sktWtpGL7-1wTdz2suDWFjcyX=fFU+JHjs5+TTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] HID: Debug: Add labels for HID Sensor Usages [not found] ` <CA+BWVUTOHr-sktWtpGL7-1wTdz2suDWFjcyX=fFU+JHjs5+TTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-05-24 10:25 ` Jonathan Cameron 2014-05-26 8:37 ` Jiri Kosina 0 siblings, 1 reply; 3+ messages in thread From: Jonathan Cameron @ 2014-05-24 10:25 UTC (permalink / raw) To: Reyad Attiyat, linux-iio-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-input, Srinivas Pandruvada, Jiri Kosina On 14/05/14 01:54, Reyad Attiyat wrote: > --- This looks reasonable to me, but I haven't checked every entry. Also Reyad, you need to sign off on the patch if you expect anyone to pick it up. Jiri, this is one for you. (note Jiri should probably have been cc'd in the first place as the HID maintainer - unless he specifically asked not to be). Jonathan > drivers/hid/hid-debug.c | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 79 insertions(+) > > diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c > index 53b771d..25cc71c 100644 > --- a/drivers/hid/hid-debug.c > +++ b/drivers/hid/hid-debug.c > @@ -272,6 +272,85 @@ static const struct hid_usage_entry hid_usage_table[] = { > {0, 0xAA, "Shared_Parameter_Blocks"}, > {0, 0xAB, "Create_New_Effect_Report"}, > {0, 0xAC, "RAM_Pool_Available"}, > + { 0x20, 0, "Sensor" }, > + { 0x20, 0x01, "Sensor" }, > + { 0x20, 0x10, "Biometric" }, > + { 0x20, 0x11, "BiometricHumanPresence" }, > + { 0x20, 0x12, "BiometricHumanProximity" }, > + { 0x20, 0x13, "BiometricHumanTouch" }, > + { 0x20, 0x20, "Electrical" }, > + { 0x20, 0x21, "ElectricalCapacitance" }, > + { 0x20, 0x22, "ElectricalCurrent" }, > + { 0x20, 0x23, "ElectricalPower" }, > + { 0x20, 0x24, "ElectricalInductance" }, > + { 0x20, 0x25, "ElectricalResistance" }, > + { 0x20, 0x26, "ElectricalVoltage" }, > + { 0x20, 0x27, "ElectricalPoteniometer" }, > + { 0x20, 0x28, "ElectricalFrequency" }, > + { 0x20, 0x29, "ElectricalPeriod" }, > + { 0x20, 0x30, "Environmental" }, > + { 0x20, 0x31, "EnvironmentalAtmosphericPressure" }, > + { 0x20, 0x32, "EnvironmentalHumidity" }, > + { 0x20, 0x33, "EnvironmentalTemperature" }, > + { 0x20, 0x34, "EnvironmentalWindDirection" }, > + { 0x20, 0x35, "EnvironmentalWindSpeed" }, > + { 0x20, 0x40, "Light" }, > + { 0x20, 0x41, "LightAmbientLight" }, > + { 0x20, 0x42, "LightConsumerInfrared" }, > + { 0x20, 0x50, "Location" }, > + { 0x20, 0x51, "LocationBroadcast" }, > + { 0x20, 0x52, "LocationDeadReckoning" }, > + { 0x20, 0x53, "LocationGPS" }, > + { 0x20, 0x54, "LocationLookup" }, > + { 0x20, 0x55, "LocationOther" }, > + { 0x20, 0x56, "LocationStatic" }, > + { 0x20, 0x57, "LocationTriangulation" }, > + { 0x20, 0x60, "Mechanical" }, > + { 0x20, 0x61, "MechanicalBooleanSwitch" }, > + { 0x20, 0x62, "MechanicalBooleanSwitchArray" }, > + { 0x20, 0x63, "MechanicalMultivalueSwitch" }, > + { 0x20, 0x64, "MechanicalForce" }, > + { 0x20, 0x65, "MechanicalPressure" }, > + { 0x20, 0x66, "MechanicalStrain" }, > + { 0x20, 0x67, "MechanicalWeight" }, > + { 0x20, 0x68, "MechanicalHapticVibrator" }, > + { 0x20, 0x69, "MechanicalHallEffectSwitch" }, > + { 0x20, 0x70, "Motion" }, > + { 0x20, 0x71, "MotionAccelerometer1D" }, > + { 0x20, 0x72, "MotionAccelerometer2D" }, > + { 0x20, 0x73, "MotionAccelerometer3D" }, > + { 0x20, 0x74, "MotionGyrometer1D" }, > + { 0x20, 0x75, "MotionGyrometer2D" }, > + { 0x20, 0x76, "MotionGyrometer3D" }, > + { 0x20, 0x77, "MotionMotionDetector" }, > + { 0x20, 0x78, "MotionSpeedometer" }, > + { 0x20, 0x79, "MotionAccelerometer" }, > + { 0x20, 0x7A, "MotionGyrometer" }, > + { 0x20, 0x80, "Orientation" }, > + { 0x20, 0x81, "OrientationCompass1D" }, > + { 0x20, 0x82, "OrientationCompass2D" }, > + { 0x20, 0x83, "OrientationCompass3D" }, > + { 0x20, 0x84, "OrientationInclinometer1D" }, > + { 0x20, 0x85, "OrientationInclinometer2D" }, > + { 0x20, 0x86, "OrientationInclinometer3D" }, > + { 0x20, 0x87, "OrientationDistance1D" }, > + { 0x20, 0x88, "OrientationDistance2D" }, > + { 0x20, 0x89, "OrientationDistance3D" }, > + { 0x20, 0x8A, "OrientationDeviceOrientation" }, > + { 0x20, 0x8B, "OrientationCompass" }, > + { 0x20, 0x8C, "OrientationInclinometer" }, > + { 0x20, 0x8D, "OrientationDistance" }, > + { 0x20, 0x90, "Scanner" }, > + { 0x20, 0x91, "ScannerBarcode" }, > + { 0x20, 0x91, "ScannerRFID" }, > + { 0x20, 0x91, "ScannerNFC" }, > + { 0x20, 0xA0, "Time" }, > + { 0x20, 0xA1, "TimeAlarmTimer" }, > + { 0x20, 0xA2, "TimeRealTimeClock" }, > + { 0x20, 0xE0, "Other" }, > + { 0x20, 0xE1, "OtherCustom" }, > + { 0x20, 0xE2, "OtherGeneric" }, > + { 0x20, 0xE3, "OtherGenericEnumerator" }, > { 0x84, 0, "Power Device" }, > { 0x84, 0x02, "PresentStatus" }, > { 0x84, 0x03, "ChangeStatus" }, > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] HID: Debug: Add labels for HID Sensor Usages 2014-05-24 10:25 ` Jonathan Cameron @ 2014-05-26 8:37 ` Jiri Kosina 0 siblings, 0 replies; 3+ messages in thread From: Jiri Kosina @ 2014-05-26 8:37 UTC (permalink / raw) To: Jonathan Cameron Cc: Reyad Attiyat, linux-iio, linux-kernel, linux-input, Srinivas Pandruvada On Sat, 24 May 2014, Jonathan Cameron wrote: > This looks reasonable to me, but I haven't checked every entry. Also > Reyad, you need to sign off on the patch if you expect anyone to pick it > up. > > Jiri, this is one for you. (note Jiri should probably have been cc'd in the > first place as the HID maintainer - unless he specifically asked not to be). I definitely want (and need) to be CCed on such patches, thanks for letting me know, Jonathan. Reyad, please add you signoff as Jonathan said, and resend the patch properly to me. -- Jiri Kosina SUSE Labs ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-26 8:37 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-14 0:54 [PATCH] HID: Debug: Add labels for HID Sensor Usages Reyad Attiyat [not found] ` <CA+BWVUTOHr-sktWtpGL7-1wTdz2suDWFjcyX=fFU+JHjs5+TTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-05-24 10:25 ` Jonathan Cameron 2014-05-26 8:37 ` Jiri Kosina
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).