summary refs log tree commit diff stats
path: root/include/standard-headers/linux/input-event-codes.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-07-02 11:40:10 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-07-09 16:09:12 +0100
commite24a9f6a595cc4502b67046ea3860cae2be15b71 (patch)
tree56537a548c6a44fa9516895ca316aec8f328cd00 /include/standard-headers/linux/input-event-codes.h
parent102d7d1fba6d1121c86ef31c33b808a3104ab263 (diff)
downloadfocaccia-qemu-e24a9f6a595cc4502b67046ea3860cae2be15b71.tar.gz
focaccia-qemu-e24a9f6a595cc4502b67046ea3860cae2be15b71.zip
hw/gpio/pl061: Clean up read/write offset handling logic
Currently the pl061_read() and pl061_write() functions handle offsets
using a combination of three if() statements and a switch().  Clean
this up to use just a switch, using case ranges.

This requires that instead of catching accesses to the luminary-only
registers on a stock PL061 via a check on s->rsvd_start we use
an "is this luminary?" check in the cases for each luminary-only
register.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'include/standard-headers/linux/input-event-codes.h')
0 files changed, 0 insertions, 0 deletions