summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/xilinx-xadc-events.c
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2020-03-20 12:01:23 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-20 15:10:51 +0100
commit825c6f470c62da05195fab57bb6561ccc1bdafcd (patch)
tree5f10705a36be53cdd33a20ff681ef542cf1391eb /drivers/iio/adc/xilinx-xadc-events.c
parentstaging: mt7621-pci: change variable to print for slot (diff)
downloadlinux-825c6f470c62da05195fab57bb6561ccc1bdafcd.tar.xz
linux-825c6f470c62da05195fab57bb6561ccc1bdafcd.zip
staging: mt7621-pci: be sure gpio descriptor is null on fails
Function 'devm_gpiod_get_index_optional' returns NULL if the descriptor is invalid and the error associated for the error pointer is ENOENT. Sometimes if the pin is just assigned the error associated for the pointer might not be ENOENT but other. In order to avoid weirds behaviours if this happen set descriptor to NULL in the driver port structure. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Link: https://lore.kernel.org/r/20200320110123.9907-6-sergio.paracuellos@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc/xilinx-xadc-events.c')
0 files changed, 0 insertions, 0 deletions