Skip to content
Commit 9fea3696 authored by John Keeping's avatar John Keeping Committed by Kever Yang
Browse files

rockchip: otp: fix misc_read() return values



The documentation for misc_read() says:

    Return: number of bytes read if OK (may be 0 if EOF), -ve on error

The Rockchip efuse driver implements this so it should return the number
of bytes read rather than zero on success.  Fix this so that the driver
follows the usual contract for read operations.

Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJonas Karlman <jonas@kwiboo.se>
Signed-off-by: default avatarJohn Keeping <john@metanate.com>
Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
parent a48d1353
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment