iio: sca3000: Handle errors returned by 'sca3000_configure_ring()' in 'sca3000_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 8 Apr 2018 19:44:15 +0000 (21:44 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Apr 2018 19:18:25 +0000 (20:18 +0100)
commitda2d54494c56339dc8ebd9093d332b23933dc2a3
tree6d713a9b8dc95eed242a4e87f531ef1a7a2cc7dc
parent4a5b45383ca371e123ba103d34d4b3b87616245c
iio: sca3000: Handle errors returned by 'sca3000_configure_ring()' in 'sca3000_probe()'

'sca3000_configure_ring()' can fail, so test its return value and
propagate it if needed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/sca3000.c