summaryrefslogtreecommitdiff
path: root/test/str_ut.c
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2020-07-06 22:01:12 +0200
committerHeiko Schocher <hs@denx.de>2020-07-09 06:02:45 +0200
commit5113f0b65a6a1ce79f4befa4e99f3e8e4a1eb9b0 (patch)
treef87aa93d71e07bccd91cd1e07d9becfe63e2f901 /test/str_ut.c
parent09381829a231f5d2b95568f3178c2bd125a93fac (diff)
downloadu-boot-5113f0b65a6a1ce79f4befa4e99f3e8e4a1eb9b0.tar.gz
rtc: fall back to ->{read, write} if ->{read, write}8 are not provided
Similar to how the dm_rtc_{read,write} functions fall back to using the {read,write}8 methods, do the opposite in the rtc_{read,write}8 functions. This way, each driver only needs to provide either ->read8 or ->read to make both rtc_read8() and dm_rtc_read() work - without this, a driver that provides ->read() would most likely just duplicate the logic here for implementing a ->read8() method in term of its ->read() method. The same remarks of course apply to the write case. Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heiko Schocher <hs@denx.de> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'test/str_ut.c')
0 files changed, 0 insertions, 0 deletions