bcma: add set/mask macros for 16-bit register access
authorArend van Spriel <arend@broadcom.com>
Thu, 8 Dec 2011 23:06:41 +0000 (15:06 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Dec 2011 20:31:24 +0000 (15:31 -0500)
commit9d08f10d355afd500310738ff09b4d921a447102
tree85748639950c04f299d81c784eb68a059ee7c449
parentffb2756511a90091185e9be0652cc10eee0890d0
bcma: add set/mask macros for 16-bit register access

The BCMA header only had definitions for 32-bit register access. Used
those as a template for the 16-bit flavour. Also changed them to inline
functions to be on the safe side. As offset parameter is used twice there
would be a problem when used like this: bcma_set32(core, offset++, val);

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/bcma/bcma.h