Source
12
12
*
13
13
*/
14
14
15
15
#include <linux/mfd/wm8994/core.h>
16
16
#include <linux/mfd/wm8994/registers.h>
17
17
#include <linux/regmap.h>
18
18
#include <linux/device.h>
19
19
20
20
#include "wm8994.h"
21
21
22
-
static struct reg_default wm1811_defaults[] = {
22
+
static const struct reg_default wm1811_defaults[] = {
23
23
{ 0x0001, 0x0000 }, /* R1 - Power Management (1) */
24
24
{ 0x0002, 0x6000 }, /* R2 - Power Management (2) */
25
25
{ 0x0003, 0x0000 }, /* R3 - Power Management (3) */
26
26
{ 0x0004, 0x0000 }, /* R4 - Power Management (4) */
27
27
{ 0x0005, 0x0000 }, /* R5 - Power Management (5) */
28
28
{ 0x0006, 0x0000 }, /* R6 - Power Management (6) */
29
29
{ 0x0015, 0x0000 }, /* R21 - Input Mixer (1) */
30
30
{ 0x0018, 0x008B }, /* R24 - Left Line Input 1&2 Volume */
31
31
{ 0x0019, 0x008B }, /* R25 - Left Line Input 3&4 Volume */
32
32
{ 0x001A, 0x008B }, /* R26 - Right Line Input 1&2 Volume */
244
244
{ 0x070A, 0xA101 }, /* R1802 - GPIO 11 */
245
245
{ 0x0720, 0x0000 }, /* R1824 - Pull Control (1) */
246
246
{ 0x0721, 0x0156 }, /* R1825 - Pull Control (2) */
247
247
{ 0x0732, 0x0000 }, /* R1842 - Interrupt Raw Status 2 */
248
248
{ 0x0738, 0x07FF }, /* R1848 - Interrupt Status 1 Mask */
249
249
{ 0x0739, 0xDFEF }, /* R1849 - Interrupt Status 2 Mask */
250
250
{ 0x0740, 0x0000 }, /* R1856 - Interrupt Control */
251
251
{ 0x0748, 0x003F }, /* R1864 - IRQ Debounce */
252
252
};
253
253
254
-
static struct reg_default wm8994_defaults[] = {
254
+
static const struct reg_default wm8994_defaults[] = {
255
255
{ 0x0001, 0x0000 }, /* R1 - Power Management (1) */
256
256
{ 0x0002, 0x6000 }, /* R2 - Power Management (2) */
257
257
{ 0x0003, 0x0000 }, /* R3 - Power Management (3) */
258
258
{ 0x0004, 0x0000 }, /* R4 - Power Management (4) */
259
259
{ 0x0005, 0x0000 }, /* R5 - Power Management (5) */
260
260
{ 0x0006, 0x0000 }, /* R6 - Power Management (6) */
261
261
{ 0x0015, 0x0000 }, /* R21 - Input Mixer (1) */
262
262
{ 0x0018, 0x008B }, /* R24 - Left Line Input 1&2 Volume */
263
263
{ 0x0019, 0x008B }, /* R25 - Left Line Input 3&4 Volume */
264
264
{ 0x001A, 0x008B }, /* R26 - Right Line Input 1&2 Volume */
463
463
{ 0x0709, 0xA101 }, /* R1801 - GPIO 10 */
464
464
{ 0x070A, 0xA101 }, /* R1802 - GPIO 11 */
465
465
{ 0x0720, 0x0000 }, /* R1824 - Pull Control (1) */
466
466
{ 0x0721, 0x0156 }, /* R1825 - Pull Control (2) */
467
467
{ 0x0738, 0x07FF }, /* R1848 - Interrupt Status 1 Mask */
468
468
{ 0x0739, 0xFFFF }, /* R1849 - Interrupt Status 2 Mask */
469
469
{ 0x0740, 0x0000 }, /* R1856 - Interrupt Control */
470
470
{ 0x0748, 0x003F }, /* R1864 - IRQ Debounce */
471
471
};
472
472
473
-
static struct reg_default wm8958_defaults[] = {
473
+
static const struct reg_default wm8958_defaults[] = {
474
474
{ 0x0001, 0x0000 }, /* R1 - Power Management (1) */
475
475
{ 0x0002, 0x6000 }, /* R2 - Power Management (2) */
476
476
{ 0x0003, 0x0000 }, /* R3 - Power Management (3) */
477
477
{ 0x0004, 0x0000 }, /* R4 - Power Management (4) */
478
478
{ 0x0005, 0x0000 }, /* R5 - Power Management (5) */
479
479
{ 0x0006, 0x0000 }, /* R6 - Power Management (6) */
480
480
{ 0x0015, 0x0000 }, /* R21 - Input Mixer (1) */
481
481
{ 0x0018, 0x008B }, /* R24 - Left Line Input 1&2 Volume */
482
482
{ 0x0019, 0x008B }, /* R25 - Left Line Input 3&4 Volume */
483
483
{ 0x001A, 0x008B }, /* R26 - Right Line Input 1&2 Volume */