[PATCH] iio: light: gp2ap020a00f: remove unused debug_reg_addr

Antoniu Miclaus posted 1 patch 1 week, 1 day ago
drivers/iio/light/gp2ap020a00f.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] iio: light: gp2ap020a00f: remove unused debug_reg_addr
Posted by Antoniu Miclaus 1 week, 1 day ago
Remove unused debug_reg_addr field from gp2ap020a00f_data
struct. The field is declared but never accessed in the
driver.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/light/gp2ap020a00f.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/light/gp2ap020a00f.c b/drivers/iio/light/gp2ap020a00f.c
index c7df4b258e2c..7cdd61db7096 100644
--- a/drivers/iio/light/gp2ap020a00f.c
+++ b/drivers/iio/light/gp2ap020a00f.c
@@ -246,7 +246,6 @@ struct gp2ap020a00f_data {
 	struct iio_trigger *trig;
 	struct regmap *regmap;
 	unsigned int thresh_val[4];
-	u8 debug_reg_addr;
 	struct irq_work work;
 	wait_queue_head_t data_ready_queue;
 };
-- 
2.43.0