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

Antoniu Miclaus posted 1 patch 1 week, 1 day ago
drivers/iio/light/apds9306.c | 2 --
1 file changed, 2 deletions(-)
[PATCH] iio: light: apds9306: remove unused nlux_per_count
Posted by Antoniu Miclaus 1 week, 1 day ago
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@analog.com>
---
 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;
 };
 
-- 
2.43.0
Re: [PATCH] iio: light: apds9306: remove unused nlux_per_count
Posted by Subhajit Ghosh 1 week, 1 day ago
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@analog.com>
> ---
>   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@tweaklogic.com>

Regards,
Subhajit Ghosh