summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light
diff options
context:
space:
mode:
authorPaolo Cretaro <paolocretaro@gmail.com>2017-11-19 01:57:45 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-12-02 10:39:44 +0000
commit5f045af0b5dcdeba2776f0123bb33aba57f7b265 (patch)
tree5376f2b651b5a2c7c46092e92557600e0d04c727 /drivers/iio/light
parent10c7a314c9fde2342407c1bd2d71d0c0f7ff9662 (diff)
downloadtalos-obmc-linux-5f045af0b5dcdeba2776f0123bb33aba57f7b265.tar.gz
talos-obmc-linux-5f045af0b5dcdeba2776f0123bb33aba57f7b265.zip
iio: cros_ec: Remove unused variables
Fix gcc warnings about variable 'ec_device' being set but not used in these files: common/cros_ec_sensors/cros_ec_sensors.c:194:25 light/cros_ec_light_prox.c:184:25 Signed-off-by: Paolo Cretaro <paolocretaro@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r--drivers/iio/light/cros_ec_light_prox.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c
index b2a46b390d5c..acfad4aeb27a 100644
--- a/drivers/iio/light/cros_ec_light_prox.c
+++ b/drivers/iio/light/cros_ec_light_prox.c
@@ -181,7 +181,6 @@ static int cros_ec_light_prox_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
struct cros_ec_dev *ec_dev = dev_get_drvdata(dev->parent);
- struct cros_ec_device *ec_device;
struct iio_dev *indio_dev;
struct cros_ec_light_prox_state *state;
struct iio_chan_spec *channel;
@@ -191,7 +190,6 @@ static int cros_ec_light_prox_probe(struct platform_device *pdev)
dev_warn(dev, "No CROS EC device found.\n");
return -EINVAL;
}
- ec_device = ec_dev->ec_dev;
indio_dev = devm_iio_device_alloc(dev, sizeof(*state));
if (!indio_dev)
OpenPOWER on IntegriCloud