bus: brcmstb_gisb: Use register offsets with writes too
authorDoug Berger <opendmb@gmail.com>
Thu, 30 Mar 2017 00:29:09 +0000 (17:29 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sun, 14 May 2017 03:18:54 +0000 (20:18 -0700)
commit856c7ccb9ce7a061f04bdf586f649cb93654e294
treee7fd028ad8f9e86ac37a3dbb773242b99b35ae49
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
bus: brcmstb_gisb: Use register offsets with writes too

This commit corrects the bug introduced in commit f80835875d3d
("bus: brcmstb_gisb: Look up register offsets in a table") such
that gisb_write() translates the register enumeration into an
offset from the base address for writes as well as reads.

Fixes: f80835875d3d ("bus: brcmstb_gisb: Look up register offsets in a table")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/bus/brcmstb_gisb.c