summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/hid-sensor-prox.c
diff options
context:
space:
mode:
authorFabio Estevam2015-05-08 20:54:00 +0200
committerJonathan Cameron2015-06-14 16:03:53 +0200
commit1ca0259b18478b2bab6d5c81ca1de52dd519ae5e (patch)
treed0d09fb55ee80002e95d786215b880c81a9a84ba /drivers/iio/light/hid-sensor-prox.c
parentiio: adc: cc10001: Power-up the ADC at probe time when used remotely (diff)
downloadkernel-qcow2-linux-1ca0259b18478b2bab6d5c81ca1de52dd519ae5e.tar.gz
kernel-qcow2-linux-1ca0259b18478b2bab6d5c81ca1de52dd519ae5e.tar.xz
kernel-qcow2-linux-1ca0259b18478b2bab6d5c81ca1de52dd519ae5e.zip
iio: light: hid-sensor-prox: Fit assignment in one line
There is no need to do the assignment to indio_dev->num_channels in two lines code. Put it in one line. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/hid-sensor-prox.c')
-rw-r--r--drivers/iio/light/hid-sensor-prox.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/light/hid-sensor-prox.c b/drivers/iio/light/hid-sensor-prox.c
index 0d248476f4c9..45ca056f019e 100644
--- a/drivers/iio/light/hid-sensor-prox.c
+++ b/drivers/iio/light/hid-sensor-prox.c
@@ -284,8 +284,7 @@ static int hid_prox_probe(struct platform_device *pdev)
goto error_free_dev_mem;
}
- indio_dev->num_channels =
- ARRAY_SIZE(prox_channels);
+ indio_dev->num_channels = ARRAY_SIZE(prox_channels);
indio_dev->dev.parent = &pdev->dev;
indio_dev->info = &prox_info;
indio_dev->name = name;