Skip to content

Commit 07b34dd

Browse files
Lee Jonesbentiss
authored andcommitted
HID: hid-sensor-hub: Remove unused struct member 'quirks'
Commit b0f847e ("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]>
1 parent 1784cd5 commit 07b34dd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/hid/hid-sensor-hub.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ struct sensor_hub_data {
3434
spinlock_t dyn_callback_lock;
3535
struct mfd_cell *hid_sensor_hub_client_devs;
3636
int hid_sensor_client_cnt;
37-
unsigned long quirks;
3837
int ref_cnt;
3938
};
4039

@@ -615,7 +614,6 @@ static int sensor_hub_probe(struct hid_device *hdev,
615614
}
616615

617616
hid_set_drvdata(hdev, sd);
618-
sd->quirks = id->driver_data;
619617

620618
spin_lock_init(&sd->lock);
621619
spin_lock_init(&sd->dyn_callback_lock);

0 commit comments

Comments
 (0)