ASoC: MAX9877: separate callback functions
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 22 Jul 2009 05:09:08 +0000 (14:09 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 Jul 2009 10:02:49 +0000 (11:02 +0100)
commite458a48f8776d624d05246471501c6086adb1d7a
tree5c96c7fdea5fcaa71fdcf01468933aac6797e29b
parented0f19b23754dc24f9a2d3c266a36277410f4686
ASoC: MAX9877: separate callback functions

The callback function to control register was used by whole controls in
MAX9877 driver, but this causes using many if statement for double
register control or invert.
So, the callback function for double register control is separate
differently, and the code for invert is added in the callback function.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/max9877.c