]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iio: adc: ad9467: return ENODEV vs EINVAL in ad9467_setup()
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 16 Sep 2020 08:22:21 +0000 (11:22 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 16 Sep 2020 18:15:54 +0000 (19:15 +0100)
commit13ca1a1be50180ccd700cff00a342156b1cdae8e
tree0b7df5f767162149e6707fa3cb0fde23f5b36626
parent6026af6a53dffb50db87ef264294dff57ed3a845
iio: adc: ad9467: return ENODEV vs EINVAL in ad9467_setup()

The proper error code should be ENODEV (vs EINVAL) in case the chip ID
isn't recognized.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200916082221.72851-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad9467.c