diff options
| -rw-r--r-- | sound/soc/codecs/rt5670.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/rt5670.c b/sound/soc/codecs/rt5670.c index cc7f84a150a7..f87a6dabbd49 100644 --- a/sound/soc/codecs/rt5670.c +++ b/sound/soc/codecs/rt5670.c | |||
| @@ -51,12 +51,11 @@ static const struct regmap_range_cfg rt5670_ranges[] = { | |||
| 51 | .window_len = 0x1, }, | 51 | .window_len = 0x1, }, |
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | static struct reg_default init_list[] = { | 54 | static const struct reg_default init_list[] = { |
| 55 | { RT5670_PR_BASE + 0x14, 0x9a8a }, | 55 | { RT5670_PR_BASE + 0x14, 0x9a8a }, |
| 56 | { RT5670_PR_BASE + 0x38, 0x3ba1 }, | 56 | { RT5670_PR_BASE + 0x38, 0x3ba1 }, |
| 57 | { RT5670_PR_BASE + 0x3d, 0x3640 }, | 57 | { RT5670_PR_BASE + 0x3d, 0x3640 }, |
| 58 | }; | 58 | }; |
| 59 | #define RT5670_INIT_REG_LEN ARRAY_SIZE(init_list) | ||
| 60 | 59 | ||
| 61 | static const struct reg_default rt5670_reg[] = { | 60 | static const struct reg_default rt5670_reg[] = { |
| 62 | { 0x00, 0x0000 }, | 61 | { 0x00, 0x0000 }, |
| @@ -2809,7 +2808,7 @@ static const struct i2c_device_id rt5670_i2c_id[] = { | |||
| 2809 | MODULE_DEVICE_TABLE(i2c, rt5670_i2c_id); | 2808 | MODULE_DEVICE_TABLE(i2c, rt5670_i2c_id); |
| 2810 | 2809 | ||
| 2811 | #ifdef CONFIG_ACPI | 2810 | #ifdef CONFIG_ACPI |
| 2812 | static struct acpi_device_id rt5670_acpi_match[] = { | 2811 | static const struct acpi_device_id rt5670_acpi_match[] = { |
| 2813 | { "10EC5670", 0}, | 2812 | { "10EC5670", 0}, |
| 2814 | { }, | 2813 | { }, |
| 2815 | }; | 2814 | }; |
