* [PATCH] Input: zet6223 - remove an unused field in struct zet6223_ts
@ 2024-05-12 9:58 Christophe JAILLET
2024-05-13 21:24 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-05-12 9:58 UTC (permalink / raw
To: Dmitry Torokhov
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-input
In "struct zet6223_ts", the 'vcc' and 'vio' fields are unused.
So, remove them.
Found with cppcheck, unusedStructMember.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only.
It was added in the initial commit 83f66a6f08fa ("Input: add driver for
Zeitec ZET6223") but was never used.
---
drivers/input/touchscreen/zet6223.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/input/touchscreen/zet6223.c b/drivers/input/touchscreen/zet6223.c
index 1a034471f103..ec3fca4a48c0 100644
--- a/drivers/input/touchscreen/zet6223.c
+++ b/drivers/input/touchscreen/zet6223.c
@@ -25,8 +25,6 @@
struct zet6223_ts {
struct i2c_client *client;
struct input_dev *input;
- struct regulator *vcc;
- struct regulator *vio;
struct touchscreen_properties prop;
struct regulator_bulk_data supplies[2];
u16 max_x;
--
2.45.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: zet6223 - remove an unused field in struct zet6223_ts
2024-05-12 9:58 [PATCH] Input: zet6223 - remove an unused field in struct zet6223_ts Christophe JAILLET
@ 2024-05-13 21:24 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2024-05-13 21:24 UTC (permalink / raw
To: Christophe JAILLET; +Cc: linux-kernel, kernel-janitors, linux-input
On Sun, May 12, 2024 at 11:58:00AM +0200, Christophe JAILLET wrote:
> In "struct zet6223_ts", the 'vcc' and 'vio' fields are unused.
>
> So, remove them.
>
> Found with cppcheck, unusedStructMember.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Applied, thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-13 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-12 9:58 [PATCH] Input: zet6223 - remove an unused field in struct zet6223_ts Christophe JAILLET
2024-05-13 21:24 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).