diff mbox series

[v2,2/4] HID: hid-sensor-custom: Add LISS custom sensors

Message ID 20221117234302.3875-2-p.jungkamp@gmx.net (mailing list archive)
State Changes Requested
Headers show
Series [v2,1/4] HID: hid-sensor-custom: Allow more custom iio sensors | expand

Commit Message

Philipp Jungkamp Nov. 17, 2022, 11:43 p.m. UTC
Add the Lenovo Intelligent Sensing Solution (LISS) custom sensors to the
known custom sensors.
---
Here is the requested noop commit that changes the device ids for the known
LISS sensors.

 drivers/hid/hid-sensor-custom.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

--
2.38.1

Comments

srinivas pandruvada Nov. 18, 2022, 8:16 p.m. UTC | #1
On Fri, 2022-11-18 at 00:43 +0100, Philipp Jungkamp wrote:
> Add the Lenovo Intelligent Sensing Solution (LISS) custom sensors to
> the
> known custom sensors.
> ---
Generally you need write a version history:

v2
..

if no change just write
- No change.


> Here is the requested noop commit that changes the device ids for the
> known
> LISS sensors.
> 
>  drivers/hid/hid-sensor-custom.c | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
> 
> diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-
> sensor-custom.c
> index 89e56913c92e..85db14406b23 100644
> --- a/drivers/hid/hid-sensor-custom.c
> +++ b/drivers/hid/hid-sensor-custom.c
> @@ -782,6 +782,29 @@ static const struct hid_sensor_custom_match
> hid_sensor_custom_known_table[] = {
>                 .luid = "020B000000000000",
>                 .manufacturer = "INTEL",
>         },
> +       /*
> +        * Lenovo Intelligent Sensing Solution (LISS)
> +        */
> +       {       /* ambient light */
> +               .tag = "LISS",
> +               .luid = "0041010200000082",
> +               .model = "STK3X3X Sensor",
> +               .manufacturer = "Vendor 258",
> +               .check_dmi = true,
> +               .dmi.matches = {
> +                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               }
> +       },
> +       {       /* human presence */
> +               .tag = "LISS",
> +               .luid = "0226000171AC0081",
> +               .model = "VL53L1_HOD Sensor",
> +               .manufacturer = "ST_MICRO",
> +               .check_dmi = true,
> +               .dmi.matches = {
> +                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +               }
> +       },
>         {}
>  };
> 
> --
> 2.38.1
>
diff mbox series

Patch

diff --git a/drivers/hid/hid-sensor-custom.c b/drivers/hid/hid-sensor-custom.c
index 89e56913c92e..85db14406b23 100644
--- a/drivers/hid/hid-sensor-custom.c
+++ b/drivers/hid/hid-sensor-custom.c
@@ -782,6 +782,29 @@  static const struct hid_sensor_custom_match hid_sensor_custom_known_table[] = {
 		.luid = "020B000000000000",
 		.manufacturer = "INTEL",
 	},
+	/*
+	 * Lenovo Intelligent Sensing Solution (LISS)
+	 */
+	{	/* ambient light */
+		.tag = "LISS",
+		.luid = "0041010200000082",
+		.model = "STK3X3X Sensor",
+		.manufacturer = "Vendor 258",
+		.check_dmi = true,
+		.dmi.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		}
+	},
+	{	/* human presence */
+		.tag = "LISS",
+		.luid = "0226000171AC0081",
+		.model = "VL53L1_HOD Sensor",
+		.manufacturer = "ST_MICRO",
+		.check_dmi = true,
+		.dmi.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		}
+	},
 	{}
 };