diff mbox series

Input: zet6223 - remove an unused field in struct zet6223_ts

Message ID 3065d885341e2730dd3e7905d75514796a8c25e4.1715507858.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State Mainlined
Commit adb2e48afc352fb00357e158be006296f220347e
Headers show
Series Input: zet6223 - remove an unused field in struct zet6223_ts | expand

Commit Message

Christophe JAILLET May 12, 2024, 9:58 a.m. UTC
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(-)

Comments

Dmitry Torokhov May 13, 2024, 9:24 p.m. UTC | #1
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.
diff mbox series

Patch

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;