提交 1ca0259b 编写于 作者: F Fabio Estevam 提交者: Jonathan Cameron

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: NFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 ae354962
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册