Files
linux/drivers/iio
Chuhong Yuan c53b4ac934 iio: amplifiers: ad8366: Change devm_gpiod_get() to optional and add the missed check
[ Upstream commit 9ca39411f9 ]

Since if there is no GPIO, nothing happens, replace devm_gpiod_get()
with devm_gpiod_get_optional().
Also add IS_ERR() to fix the missing-check warning.

Fixes: cee211f4e5 ("iio: amplifiers: ad8366: Add support for the ADA4961 DGA")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-19 08:26:25 +02:00
..
2020-05-25 09:11:19 +02:00
2020-05-25 09:11:19 +02:00
2020-03-08 17:28:53 +00:00