Re: [PATCH] iio: light: apds9306: remove unused nlux_per_count

From: Subhajit Ghosh

Date: Thu Jan 29 2026 - 17:35:08 EST


On 30/1/26 04:12, Antoniu Miclaus wrote:
Remove unused nlux_per_count field from apds9306_data
struct. The field is declared but never accessed in the
driver.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@xxxxxxxxxx>
---
drivers/iio/light/apds9306.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/iio/light/apds9306.c b/drivers/iio/light/apds9306.c
index 7e68cca0edfa..ef6429bde193 100644
--- a/drivers/iio/light/apds9306.c
+++ b/drivers/iio/light/apds9306.c
@@ -168,7 +168,6 @@ struct apds9306_regfields {
* respectively.
* @regmap: Regmap structure pointer
* @rf: Regmap register fields structure
- * @nlux_per_count: Nano lux per ADC count for a particular model
* @read_data_available: Flag set by IRQ handler for ADC data available
*/
struct apds9306_data {
@@ -180,7 +179,6 @@ struct apds9306_data {
struct regmap *regmap;
struct apds9306_regfields rf;
- int nlux_per_count;
int read_data_available;
};
Good find.

Acked-by: Subhajit Ghosh <subhajit.ghosh@xxxxxxxxxxxxxx>

Regards,
Subhajit Ghosh