projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52ac305
)
misc: bh1770glc: remove unused array prox_curr_ma
author
Colin Ian King
<colin.king@canonical.com>
Tue, 7 Aug 2018 13:20:32 +0000
(14:20 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 12 Sep 2018 07:46:46 +0000
(09:46 +0200)
Array prox_curr_ma is declared but never used, hence it is redundant
and can be removed.
Cleans up clang warning:
warning: 'prox_curr_ma' 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>
drivers/misc/bh1770glc.c
patch
|
blob
|
history
diff --git
a/drivers/misc/bh1770glc.c
b/drivers/misc/bh1770glc.c
index 9c62bf064f77d5d053e4901e763eb96714de2b97..17e81ce9925b462446a5d6eae2a0ddac4dca4401 100644
(file)
--- a/
drivers/misc/bh1770glc.c
+++ b/
drivers/misc/bh1770glc.c
@@
-180,9
+180,6
@@
static const char reg_vleds[] = "Vleds";
static const s16 prox_rates_hz[] = {100, 50, 33, 25, 14, 10, 5, 2};
static const s16 prox_rates_ms[] = {10, 20, 30, 40, 70, 100, 200, 500};
-/* Supported IR-led currents in mA */
-static const u8 prox_curr_ma[] = {5, 10, 20, 50, 100, 150, 200};
-
/*
* Supported stand alone rates in ms from chip data sheet
* {100, 200, 500, 1000, 2000};