]> Git Repo - linux.git/commitdiff
HID: i2c-hid: remove i2c_hid_open_mut
authorSebastian Andrzej Siewior <[email protected]>
Tue, 29 May 2018 12:03:21 +0000 (14:03 +0200)
committerJiri Kosina <[email protected]>
Wed, 30 May 2018 06:48:25 +0000 (08:48 +0200)
Since commit 85ae91133152 ("HID: i2c-hid: remove custom locking from
i2c_hid_open/close") there are no more users of i2c_hid_open_mut.
Remove the unused mutex.

Cc: Dmitry Torokhov <[email protected]>
Cc: Jiri Kosina <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Reviewed-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/i2c-hid/i2c-hid.c

index c5ad918e36e311c3a5f38eabf90f8df9262c4d85..4025ffb05a2006db08371256be133f25520b0093 100644 (file)
@@ -130,8 +130,6 @@ static const struct i2c_hid_cmd hid_no_cmd =                { .length = 0 };
  * static const struct i2c_hid_cmd hid_set_protocol_cmd = { I2C_HID_CMD(0x07) };
  */
 
-static DEFINE_MUTEX(i2c_hid_open_mut);
-
 /* The main device structure */
 struct i2c_hid {
        struct i2c_client       *client;        /* i2c client */
This page took 0.059793 seconds and 4 git commands to generate.