Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 776b6453 authored by Phil Turnbull's avatar Phil Turnbull Committed by Jonathan Cameron
Browse files

staging: iio: ad5933: Return correct value for AD5933_OUT_RANGE.



The 'break' statement after calling ad5933_cmd only breaks out of the
'for' loop, which then unconditionally sets the return value to -EINVAL.
Move the initialisation of 'ret' so we return the correct value.

Signed-off-by: default avatarPhil Turnbull <phil.turnbull@oracle.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent bb9947c3
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