iio: adi: ad7192: Add error check and more debug log
authorMarkus Burri <markus.burri@mt.com>
Wed, 14 Jun 2023 07:30:33 +0000 (09:30 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 15 Jul 2023 16:53:38 +0000 (17:53 +0100)
commitf41f444334ea23ed071508f271109e2b6e878537
tree6241eae6e20a5864f4c6eb9fbdaf7d9064d03bb0
parent478baae99c714a14de98e9387ffdd009633fdee7
iio: adi: ad7192: Add error check and more debug log

Print read and expected device ID as debug warning.
Add error check for ad_sd_init() result.

Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Markus Burri <markus.burri@mt.com>
Link: https://lore.kernel.org/r/20230614073033.2497318-1-markus.burri@mt.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7192.c