Skip to content
Commit f0030d87 authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck
Browse files

hwmon: (ad7414) Return proper error code for ad7414_probe()



Return proper error if i2c_check_functionality reports
the adapter does not support the capability we need.

Also remove unneeded initialization for err variable.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarSean MacLennan <smaclennan@pikatech.com>
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
parent f7334b4c
Loading
Loading
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