]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: otp: Refactor to use driver data and ops
authorJonas Karlman <jonas@kwiboo.se>
Wed, 22 Feb 2023 22:44:38 +0000 (22:44 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 28 Feb 2023 10:07:28 +0000 (18:07 +0800)
commit8fa1870e11ebf049af74be94bfaad17006eb18da
tree9aa3c7300d273d497d76b9729db1afc02a692439
parent15b2d1fb727b5e09ec95a0c613f8fac5752f1a76
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>
drivers/misc/rockchip-otp.c