diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-08-09 14:53:38 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-08-19 18:28:26 +0100 |
commit | eb2e188817b13d2f13b61ea6b96b7753ccff48dd (patch) | |
tree | f776ca3d366da582e0ed56fa7d69e45b4cb3815c /drivers/iio | |
parent | f4f55ce38e5f823a13662b12189627a5b9a34688 (diff) | |
download | linux-stable-eb2e188817b13d2f13b61ea6b96b7753ccff48dd.tar.gz linux-stable-eb2e188817b13d2f13b61ea6b96b7753ccff48dd.tar.bz2 linux-stable-eb2e188817b13d2f13b61ea6b96b7753ccff48dd.zip |
iio: max44000: remove unused variable max44000_alstim_shift
Variable max44000_alstim_shift is defined but is never used hence it is
redundant and can be removed. This variable has been like this since
the driver was added back in 2016.
Cleans up clang warning:
warning: 'max44000_alstim_shift' defined but not used [-Wunused-const-variable=]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/light/max44000.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/light/max44000.c b/drivers/iio/light/max44000.c index bcdb0eb9e537..b9b0bd341be8 100644 --- a/drivers/iio/light/max44000.c +++ b/drivers/iio/light/max44000.c @@ -99,7 +99,6 @@ static const int max44000_alspga_shift[] = {0, 2, 4, 7}; * Handling this internally is also required for buffer support because the * channel's scan_type can't be modified dynamically. */ -static const int max44000_alstim_shift[] = {0, 2, 4, 6}; #define MAX44000_ALSTIM_SHIFT(alstim) (2 * (alstim)) /* Available integration times with pretty manual alignment: */ |