diff options
Diffstat (limited to 'include/linux/mfd/wm8350/core.h')
-rw-r--r-- | include/linux/mfd/wm8350/core.h | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/include/linux/mfd/wm8350/core.h b/include/linux/mfd/wm8350/core.h index 9192b6404a73..509481d9cf19 100644 --- a/include/linux/mfd/wm8350/core.h +++ b/include/linux/mfd/wm8350/core.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/mutex.h> | 17 | #include <linux/mutex.h> |
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/completion.h> | 19 | #include <linux/completion.h> |
20 | #include <linux/regmap.h> | ||
20 | 21 | ||
21 | #include <linux/mfd/wm8350/audio.h> | 22 | #include <linux/mfd/wm8350/audio.h> |
22 | #include <linux/mfd/wm8350/gpio.h> | 23 | #include <linux/mfd/wm8350/gpio.h> |
@@ -66,6 +67,9 @@ | |||
66 | 67 | ||
67 | #define WM8350_MAX_REGISTER 0xFF | 68 | #define WM8350_MAX_REGISTER 0xFF |
68 | 69 | ||
70 | #define WM8350_UNLOCK_KEY 0x0013 | ||
71 | #define WM8350_LOCK_KEY 0x0000 | ||
72 | |||
69 | /* | 73 | /* |
70 | * Field Definitions. | 74 | * Field Definitions. |
71 | */ | 75 | */ |
@@ -582,27 +586,9 @@ | |||
582 | 586 | ||
583 | #define WM8350_NUM_IRQ_REGS 7 | 587 | #define WM8350_NUM_IRQ_REGS 7 |
584 | 588 | ||
585 | struct wm8350_reg_access { | 589 | extern const struct regmap_config wm8350_regmap; |
586 | u16 readable; /* Mask of readable bits */ | ||
587 | u16 writable; /* Mask of writable bits */ | ||
588 | u16 vol; /* Mask of volatile bits */ | ||
589 | }; | ||
590 | extern const struct wm8350_reg_access wm8350_reg_io_map[]; | ||
591 | extern const u16 wm8350_mode0_defaults[]; | ||
592 | extern const u16 wm8350_mode1_defaults[]; | ||
593 | extern const u16 wm8350_mode2_defaults[]; | ||
594 | extern const u16 wm8350_mode3_defaults[]; | ||
595 | extern const u16 wm8351_mode0_defaults[]; | ||
596 | extern const u16 wm8351_mode1_defaults[]; | ||
597 | extern const u16 wm8351_mode2_defaults[]; | ||
598 | extern const u16 wm8351_mode3_defaults[]; | ||
599 | extern const u16 wm8352_mode0_defaults[]; | ||
600 | extern const u16 wm8352_mode1_defaults[]; | ||
601 | extern const u16 wm8352_mode2_defaults[]; | ||
602 | extern const u16 wm8352_mode3_defaults[]; | ||
603 | 590 | ||
604 | struct wm8350; | 591 | struct wm8350; |
605 | struct regmap; | ||
606 | 592 | ||
607 | struct wm8350_hwmon { | 593 | struct wm8350_hwmon { |
608 | struct platform_device *pdev; | 594 | struct platform_device *pdev; |
@@ -614,7 +600,7 @@ struct wm8350 { | |||
614 | 600 | ||
615 | /* device IO */ | 601 | /* device IO */ |
616 | struct regmap *regmap; | 602 | struct regmap *regmap; |
617 | u16 *reg_cache; | 603 | bool unlocked; |
618 | 604 | ||
619 | struct mutex auxadc_mutex; | 605 | struct mutex auxadc_mutex; |
620 | struct completion auxadc_done; | 606 | struct completion auxadc_done; |