projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ff6319
)
ASoC: rt5645: Constify ACPI device ids
author
Mathias Krause
<
[email protected]
>
Sat, 2 Jan 2016 22:23:56 +0000
(23:23 +0100)
committer
Mark Brown
<
[email protected]
>
Mon, 4 Jan 2016 18:23:42 +0000
(18:23 +0000)
Constify the ACPI device ID array, no need to have it writable at
runtime. Also drop the unused RT5645_INIT_REG_LEN define.
Signed-off-by: Mathias Krause <
[email protected]
>
Cc: Bard Liao <
[email protected]
>
Cc: Oder Chiou <
[email protected]
>
Cc: John Lin <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/rt5645.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5645.c
b/sound/soc/codecs/rt5645.c
index 57c8d9ecfde18f8b431f74a60aa7f834108b3556..bd23496a56ffe3a2d34171617d78c2261c86b2aa 100644
(file)
--- a/
sound/soc/codecs/rt5645.c
+++ b/
sound/soc/codecs/rt5645.c
@@
-64,7
+64,6
@@
static const struct reg_sequence init_list[] = {
{RT5645_PR_BASE + 0x21, 0x4040},
{RT5645_PR_BASE + 0x23, 0x0004},
};
-#define RT5645_INIT_REG_LEN ARRAY_SIZE(init_list)
static const struct reg_sequence rt5650_init_list[] = {
{0xf6, 0x0100},
@@
-3521,7
+3520,7
@@
static const struct i2c_device_id rt5645_i2c_id[] = {
MODULE_DEVICE_TABLE(i2c, rt5645_i2c_id);
#ifdef CONFIG_ACPI
-static struct acpi_device_id rt5645_acpi_match[] = {
+static
const
struct acpi_device_id rt5645_acpi_match[] = {
{ "10EC5645", 0 },
{ "10EC5650", 0 },
{},