Skip to contentSkip to conversation

mfd: wm8994: Cache chip revision

PATCH Applied Mark Brown 2 participants 2 messages Apr 5, 2012 – Apr 16, 2012

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 mfd: wm8994: Cache chip revision

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.

---
 drivers/mfd/wm8994-regmap.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/mfd/wm8994-regmap.c +0 -1
index bfd25af..52e9e29 100644
@@ -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;
Signature · 1 line
1.7.9.1
Applied
#1 lore raw

Hi Mark,

Quoted 7 lines · Mark Brown

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.

---
 drivers/mfd/wm8994-regmap.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Applied to my for-next branch, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/