ASoC: rt5640: Constify ACPI device ids and register defaults
Constify the ACPI device ID array and the register map, no need to have them writable at runtime. Also drop the unneeded RT5640_INIT_REG_LEN define. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
b787f68c36
commit
b895dc2c47
|
@ -51,7 +51,7 @@ static const struct regmap_range_cfg rt5640_ranges[] = {
|
||||||
.window_len = 0x1, },
|
.window_len = 0x1, },
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct reg_default init_list[] = {
|
static const struct reg_default init_list[] = {
|
||||||
{RT5640_PR_BASE + 0x3d, 0x3600},
|
{RT5640_PR_BASE + 0x3d, 0x3600},
|
||||||
{RT5640_PR_BASE + 0x12, 0x0aa8},
|
{RT5640_PR_BASE + 0x12, 0x0aa8},
|
||||||
{RT5640_PR_BASE + 0x14, 0x0aaa},
|
{RT5640_PR_BASE + 0x14, 0x0aaa},
|
||||||
|
@ -59,7 +59,6 @@ static struct reg_default init_list[] = {
|
||||||
{RT5640_PR_BASE + 0x21, 0xe0e0},
|
{RT5640_PR_BASE + 0x21, 0xe0e0},
|
||||||
{RT5640_PR_BASE + 0x23, 0x1804},
|
{RT5640_PR_BASE + 0x23, 0x1804},
|
||||||
};
|
};
|
||||||
#define RT5640_INIT_REG_LEN ARRAY_SIZE(init_list)
|
|
||||||
|
|
||||||
static const struct reg_default rt5640_reg[] = {
|
static const struct reg_default rt5640_reg[] = {
|
||||||
{ 0x00, 0x000e },
|
{ 0x00, 0x000e },
|
||||||
|
@ -2122,7 +2121,7 @@ MODULE_DEVICE_TABLE(of, rt5640_of_match);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_ACPI
|
#ifdef CONFIG_ACPI
|
||||||
static struct acpi_device_id rt5640_acpi_match[] = {
|
static const struct acpi_device_id rt5640_acpi_match[] = {
|
||||||
{ "INT33CA", 0 },
|
{ "INT33CA", 0 },
|
||||||
{ "10EC5640", 0 },
|
{ "10EC5640", 0 },
|
||||||
{ "10EC5642", 0 },
|
{ "10EC5642", 0 },
|
||||||
|
|
Loading…
Reference in New Issue