aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorChuhong Yuan <[email protected]>2020-06-03 09:26:10 +0000
committerJonathan Cameron <[email protected]>2020-06-14 10:49:55 +0000
commit9ca39411f9a9c833727750431da8dfd96ff80005 (patch)
tree1e2f57fd2723646b6d94e890ae649be6b92b93cb /drivers/iio/trigger/stm32-timer-trigger.c
parentiio: improve IIO_CONCENTRATION channel type description (diff)
downloadkernel-9ca39411f9a9c833727750431da8dfd96ff80005.tar.gz
kernel-9ca39411f9a9c833727750431da8dfd96ff80005.zip
iio: amplifiers: ad8366: Change devm_gpiod_get() to optional and add the missed check
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: cee211f4e5a0 ("iio: amplifiers: ad8366: Add support for the ADA4961 DGA") Signed-off-by: Chuhong Yuan <[email protected]> Acked-by: Alexandru Ardelean <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions