]> git.baikalelectronics.ru Git - 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)
commitb20174d0e27a743b84f514d815aaac11361d2462
tree5e61b0b032ba738654be853d785314825f5053fc
parent91d5b669a7ef77c2633010e539cb395005c38a05
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