i2c: mv64xxx: Add macros to access parts of registers
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 12 Jun 2013 16:53:30 +0000 (18:53 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 15 Jun 2013 11:37:39 +0000 (13:37 +0200)
commit683e69b8bb4744a4088c80d05762c4258afe47e1
treeec565b1759248f44a816c75bda7c6baa1613f35d
parent560746eb79d3124a278452c8dd968682b521cc82
i2c: mv64xxx: Add macros to access parts of registers

These macros make it more comprehensive to access to useful masked and
shifted area of the various registers used.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c