]> Git Repo - linux.git/commitdiff
HID: hid-sensor-hub: Remove unused struct member 'quirks'
authorLee Jones <[email protected]>
Fri, 26 Mar 2021 14:34:55 +0000 (14:34 +0000)
committerBenjamin Tissoires <[email protected]>
Wed, 7 Apr 2021 16:46:20 +0000 (18:46 +0200)
Commit b0f847e16c1ea ("HID: hid-sensor-hub: Force logical minimum to 1
for power and report state") removed the last used quirk handled by
this driver.

Fixes the following W=1 kernel build warning(s):

 drivers/hid/hid-sensor-hub.c:39: warning: Function parameter or member 'quirks' not described in 'sensor_hub_data'

Cc: Jiri Kosina <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Cc: Srinivas Pandruvada <[email protected]>
Cc: Benjamin Tissoires <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Lee Jones <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
drivers/hid/hid-sensor-hub.c

index 3dd7d324673783dd710a68cf4b35cfb26f6a06bd..36b6852f75dd574d8d5e664f8f73c52ce50c38c5 100644 (file)
@@ -34,7 +34,6 @@ struct sensor_hub_data {
        spinlock_t dyn_callback_lock;
        struct mfd_cell *hid_sensor_hub_client_devs;
        int hid_sensor_client_cnt;
-       unsigned long quirks;
        int ref_cnt;
 };
 
@@ -615,7 +614,6 @@ static int sensor_hub_probe(struct hid_device *hdev,
        }
 
        hid_set_drvdata(hdev, sd);
-       sd->quirks = id->driver_data;
 
        spin_lock_init(&sd->lock);
        spin_lock_init(&sd->dyn_callback_lock);
This page took 0.05821 seconds and 4 git commands to generate.