mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
ASoC: rsnd: make arrays path and cmd_case static const
Don't populate the arrays path and cmd_case on the stack but make them static const. Makes the object code smaller: Before: text data bss dec hex filename 2673 624 0 3297 ce1 sound/soc/sh/rcar/cmd.o After: text data bss dec hex filename 2398 768 0 3166 c5e sound/soc/sh/rcar/cmd.o Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
49ebf13b04
commit
8288591368
@ -31,7 +31,7 @@ static int rsnd_cmd_init(struct rsnd_mod *mod,
|
||||
struct rsnd_mod *mix = rsnd_io_to_mod_mix(io);
|
||||
struct device *dev = rsnd_priv_to_dev(priv);
|
||||
u32 data;
|
||||
u32 path[] = {
|
||||
static const u32 path[] = {
|
||||
[1] = 1 << 0,
|
||||
[5] = 1 << 8,
|
||||
[6] = 1 << 12,
|
||||
@ -71,7 +71,7 @@ static int rsnd_cmd_init(struct rsnd_mod *mod,
|
||||
} else {
|
||||
struct rsnd_mod *src = rsnd_io_to_mod_src(io);
|
||||
|
||||
u8 cmd_case[] = {
|
||||
static const u8 cmd_case[] = {
|
||||
[0] = 0x3,
|
||||
[1] = 0x3,
|
||||
[2] = 0x4,
|
||||
|
Loading…
Reference in New Issue
Block a user