diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-05-01 07:05:05 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-05-07 00:41:18 +0200 |
commit | 8a22f960096000462cd8e38276fe5217db3bf944 (patch) | |
tree | 18bf0669c2c87ef8dcf100fdc9ea3c41d494d2aa /drivers/input/misc | |
parent | Input: ff-core - prefer struct_size over open coded arithmetic (diff) | |
download | linux-8a22f960096000462cd8e38276fe5217db3bf944.tar.xz linux-8a22f960096000462cd8e38276fe5217db3bf944.zip |
Input: da7280 - remove an unused field in struct da7280_haptic
In "struct da7280_haptic", the 'legacy' field is unused.
Remove it.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/ac251b456933bcc6fe297b738f9304bd259185c1.1714539865.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/da7280.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/misc/da7280.c b/drivers/input/misc/da7280.c index ce82548916bb..d82e08cf761b 100644 --- a/drivers/input/misc/da7280.c +++ b/drivers/input/misc/da7280.c @@ -230,7 +230,6 @@ struct da7280_haptic { struct i2c_client *client; struct pwm_device *pwm_dev; - bool legacy; struct work_struct work; int val; u16 gain; |