]> git.baikalelectronics.ru Git - uboot.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)
commit987ab21758cbaf990d444293d4dc4b8e8e01770f
tree9aa3c7300d273d497d76b9729db1afc02a692439
parentcc635629532542ec78394216ec52bf097966e625
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