iio: adc: report error on conversion fail properly
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Fri, 15 May 2015 06:23:45 +0000 (11:23 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Sun, 17 May 2015 19:44:21 +0000 (12:44 -0700)
commit9c140d8bba3b0f78e36573b4877c8ee601700946
tree01f7fb450f35debee35840ab1aebff146b7d870f
parent369d5ea009a2d5ea8e2de8940be81021797405e5
iio: adc: report error on conversion fail properly

report error value from ads1015 driver on start conversion
fail properly.
Modify debug messages string to know reason on failure case.

Bug 200103698

Change-Id: I0116e69d1490d478012696e25bc42752e53256d0
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/743116
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/staging/iio/adc/ads1015.c