aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/twl6040.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2011-10-12 04:57:53 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-12 06:48:35 -0400
commit1e036f65329901a2432c92132b785654944743d9 (patch)
treec60db28df0b38e6ded7ee538043d0a620b11e4b4 /include/linux/mfd/twl6040.h
parent40a49710107c237a2f4362c8b8bf07df3bac53dd (diff)
Input: twl6040: Simplify vibra regsiter definitions
The bits within the two control registers (for left and right channel) are identical. Use common names for the bits acros the two register. Also add the missing definition for the path selection bit. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/mfd/twl6040.h')
-rw-r--r--include/linux/mfd/twl6040.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
index d9e05eabef3..e6c755db456 100644
--- a/include/linux/mfd/twl6040.h
+++ b/include/linux/mfd/twl6040.h
@@ -125,24 +125,18 @@
125#define TWL6040_HSDACMODE (1 << 1) 125#define TWL6040_HSDACMODE (1 << 1)
126#define TWL6040_HSDRVMODE (1 << 3) 126#define TWL6040_HSDRVMODE (1 << 3)
127 127
128/* VIBCTLL (0x18) fields */ 128/* VIBCTLL/R (0x18/0x1A) fields */
129 129
130#define TWL6040_VIBENAL 0x01 130#define TWL6040_VIBENA (1 << 0)
131#define TWL6040_VIBCTRLL 0x04 131#define TWL6040_VIBSEL (1 << 1)
132#define TWL6040_VIBCTRLLP 0x08 132#define TWL6040_VIBCTRL (1 << 2)
133#define TWL6040_VIBCTRLLN 0x10 133#define TWL6040_VIBCTRL_P (1 << 3)
134#define TWL6040_VIBCTRL_N (1 << 4)
134 135
135/* VIBDATL (0x19) fields */ 136/* VIBDATL/R (0x19/0x1B) fields */
136 137
137#define TWL6040_VIBDAT_MAX 0x64 138#define TWL6040_VIBDAT_MAX 0x64
138 139
139/* VIBCTLR (0x1A) fields */
140
141#define TWL6040_VIBENAR 0x01
142#define TWL6040_VIBCTRLR 0x04
143#define TWL6040_VIBCTRLRP 0x08
144#define TWL6040_VIBCTRLRN 0x10
145
146/* GPOCTL (0x1E) fields */ 140/* GPOCTL (0x1E) fields */
147 141
148#define TWL6040_GPO1 0x01 142#define TWL6040_GPO1 0x01