commit | 8fa1870e11ebf049af74be94bfaad17006eb18da | [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 | 15b2d1fb727b5e09ec95a0c613f8fac5752f1a76 [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>