bus: brcmstb_gisb: Look up register offsets in a table
authorKevin Cernekee <cernekee@gmail.com>
Wed, 26 Nov 2014 00:49:51 +0000 (16:49 -0800)
committerFlorian Fainelli <f.fainelli@gmail.com>
Fri, 28 Nov 2014 23:44:43 +0000 (15:44 -0800)
There are at least 4 incompatible variations of this hardware block,
so let's use the ARB_* constants as a table index instead of hardcoding
specific register offsets.  Also, allow for the possibility of adding
old devices that are missing some of the registers.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/bus/brcmstb_gisb.c

Simple merge