]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
staging: mt7621-pci: use rt_sysc_?32() to access system-control register.
authorNeilBrown <neil@brown.name>
Wed, 6 Jun 2018 22:04:20 +0000 (08:04 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:11 +0000 (09:05 +0200)
commitc0f784ba92e051d0de33ca7e1fd192317cfdb738
tree5e61b0b032ba738654be853d785314825f5053fc
parent456aec73799f6cd31d5162d0814f8c372acffed6
staging: mt7621-pci: use rt_sysc_?32() to access system-control register.

This driver currently has internal knowledge ofthe address
of system-control registers and accesses them by dereferencing
a constant pointer.

It is cleaner to use rt_sysc_r32(), rt_sysc_w32(), rt_sysc_m32()
which is a more standard interface.
So change the defined names to offsets instead of pointers,
and use these functions.

Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c