[PATCH] iio: adc: ti-ads1015: remove unused enabled field

Antoniu Miclaus posted 1 patch 1 week, 2 days ago
drivers/iio/adc/ti-ads1015.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] iio: adc: ti-ads1015: remove unused enabled field
Posted by Antoniu Miclaus 1 week, 2 days ago
Remove unused enabled field from ads1015_channel_data
struct. The field is declared but never accessed in the
driver.

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

diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
index f2a93c63ca14..c7ffe47449e2 100644
--- a/drivers/iio/adc/ti-ads1015.c
+++ b/drivers/iio/adc/ti-ads1015.c
@@ -231,7 +231,6 @@ static const struct iio_event_spec ads1015_events[] = {
 }
 
 struct ads1015_channel_data {
-	bool enabled;
 	unsigned int pga;
 	unsigned int data_rate;
 };
-- 
2.43.0