commit | 47be21c3af361c431cd7241aa5a2aea76ff651f4 | [log] [tgz] |
---|---|---|
author | Jonas Karlman <jonas@kwiboo.se> | Wed Feb 22 22:44:38 2023 +0000 |
committer | Kever Yang <kever.yang@rock-chips.com> | Tue Feb 28 18:07:28 2023 +0800 |
tree | 9aa3c7300d273d497d76b9729db1afc02a692439 | |
parent | 91dc9f6f4768697fe2f75e19520a9fa8a3584076 [diff] |
rockchip: otp: Refactor to use driver data and ops Refactor the driver to use driver data and ops to simplify handling of SoCs that require a unique read op. Use readl_poll_sleep_timeout instead of a custom poll loop, and add validation of input parameter to main read op. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>