aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorIan Abbott <[email protected]>2023-09-13 18:07:10 +0100
committerGreg Kroah-Hartman <[email protected]>2023-10-05 13:34:04 +0200
commita3f2b80847e2b4dd7180872e69b84d515174c236 (patch)
tree1a51646c47321eb21ae14f980ffd82adcd3eb5c9 /tools/perf/scripts/python/mem-phys-addr.py
parent772dcada0e733a567ad90cca7165c5fef2a1171c (diff)
comedi: amplc_dio200_common: Refactor register access functions
The `dio200_read8()`, `dio200_write8()`, `dio200_read32()` and `dio200_write32()` functions apply a right-shift to the register offset for some devices and then perform the actual register access. Factor the register access part out to new functions `dio200___read8()`, `dio200___write8()`, `dio200___read32()`, and `dio200___write32()`. This will reduce duplicated code in a subsequent patch that will conditionally compile support for port I/O as part of the `HAS_IOPORT` changes. Cc: Arnd Bergmann <[email protected]> Cc: Niklas Schnelle <[email protected]> Signed-off-by: Ian Abbott <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions