drivers/soc/litex: separate MMIO from subregister offset calculation
authorGabriel Somlo <gsomlo@gmail.com>
Tue, 12 Jan 2021 17:31:41 +0000 (12:31 -0500)
committerStafford Horne <shorne@gmail.com>
Thu, 14 Jan 2021 00:52:54 +0000 (09:52 +0900)
commitb5d3061ea2e691ab1fa6465fce3c59d9d10357de
tree4f469c5c595971af888e486e3374baafc0045f70
parent9d93a9e8aab3f82b6742dd034a6a81d4025cd82e
drivers/soc/litex: separate MMIO from subregister offset calculation

Separate MMIO (read/write) access into _[read|write]_litex_subregister()
static inline functions, leaving existing "READ|WRITE" macros to handle
calculation of the subregister offset only.

NOTE: this is a non-functional change.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
include/linux/litex.h