]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: light: apds9306: remove unused nlux_per_count
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Mon, 2 Feb 2026 11:26:02 +0000 (13:26 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 3 Mar 2026 21:20:03 +0000 (21:20 +0000)
Remove unused nlux_per_count field from apds9306_data
struct. The field is declared but never accessed in the
driver.

Acked-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/apds9306.c

index 5d18eabd961e44144e99bf9eb8d7f3ef2f4d8e12..5ca4c87524fe2a3d5a6934ffca8662eb04a3d187 100644 (file)
@@ -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;
 };