diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-08-07 12:09:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-12 09:46:46 +0200 |
commit | 52ac30592dd6292701863ddbbfbf4c43d7cf706e (patch) | |
tree | 8ef58d4a5a38190654f297df21eef6949969c03e /drivers/misc/apds990x.c | |
parent | ae61cf5b9913027c6953a79ed3894da4f47061bd (diff) | |
download | linux-52ac30592dd6292701863ddbbfbf4c43d7cf706e.tar.gz linux-52ac30592dd6292701863ddbbfbf4c43d7cf706e.tar.bz2 linux-52ac30592dd6292701863ddbbfbf4c43d7cf706e.zip |
misc: apds990x: remove unused array ir_currents
Array ir_currents is declared but never used, hence it is redundant
and can be removed.
Cleans up clang warning:
warning: 'ir_currents' defined but not used [-Wunused-const-variable=]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/apds990x.c')
-rw-r--r-- | drivers/misc/apds990x.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c index ed9412d750b7..24876c615c3c 100644 --- a/drivers/misc/apds990x.c +++ b/drivers/misc/apds990x.c @@ -188,7 +188,6 @@ struct apds990x_chip { #define APDS_LUX_DEFAULT_RATE 200 static const u8 again[] = {1, 8, 16, 120}; /* ALS gain steps */ -static const u8 ir_currents[] = {100, 50, 25, 12}; /* IRled currents in mA */ /* Following two tables must match i.e 10Hz rate means 1 as persistence value */ static const u16 arates_hz[] = {10, 5, 2, 1}; |