sh: pfc: Add config_reg_helper() function
authorMagnus Damm <damm@opensource.se>
Tue, 13 Dec 2011 16:00:55 +0000 (01:00 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Jan 2012 00:33:52 +0000 (09:33 +0900)
commit18925e118b3b4d55b45711218cd3c3c4360e5cd1
tree4cd9f84cc6f2343f3d97093976de1dc7be75bd2e
parentad4a07ff8da7147b391f1ff0034f313a8b9da9e5
sh: pfc: Add config_reg_helper() function

Add a helper function for shared config reg access
calculations. This allows us to reduce the amount
of duplicated code, and at the same time prepare
for a common place for future variable bitwidth
config reg support.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/pfc.c