Skip to content
Snippets Groups Projects
Commit 7fc93f32 authored by Aditya Pakki's avatar Aditya Pakki Committed by Jonathan Cameron
Browse files

iio: adc: xilinx: check return value of xadc_write_adc_reg


In function xadc_probe, xadc_write_adc_reg can return an error value
when write fails. The fix checks for the return value consistent with
other invocations of the latter function.

Signed-off-by: default avatarAditya Pakki <pakki001@umn.edu>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b002bf5f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment