]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: Cache wm8994 chip revision
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 5 Apr 2012 14:16:56 +0000 (15:16 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Apr 2012 15:38:42 +0000 (17:38 +0200)
There's no need to mark the chip revision registers as volatile, it won't
change at runtime so we can cache it from the device at startup.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm8994-regmap.c

index bfd25af6ecb106e75eddb4cdc0afad561238506f..52e9e29449403b1d5b21dc215973f7e4b8de41e6 100644 (file)
@@ -1122,7 +1122,6 @@ static bool wm8994_volatile_register(struct device *dev, unsigned int reg)
        case WM8994_RATE_STATUS:
        case WM8958_MIC_DETECT_3:
        case WM8994_DC_SERVO_4E:
-       case WM8994_CHIP_REVISION:
        case WM8994_INTERRUPT_STATUS_1:
        case WM8994_INTERRUPT_STATUS_2:
                return true;