mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
ASoC: Intel: cirrus-common: Make const array uid_strings static
Don't populate the read-only const array uid_strings on the stack but instead make it static. Also makes the object code a little smaller. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20221103120624.72583-1-colin.i.king@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
f7d97cb564
commit
b43d0c0a42
@ -155,7 +155,7 @@ static const char * const cs35l41_name_prefixes[] = { "WL", "WR", "TL", "TR" };
|
||||
*/
|
||||
static int cs35l41_compute_codec_conf(void)
|
||||
{
|
||||
const char * const uid_strings[] = { "0", "1", "2", "3" };
|
||||
static const char * const uid_strings[] = { "0", "1", "2", "3" };
|
||||
unsigned int uid, sz = 0;
|
||||
struct acpi_device *adev;
|
||||
struct device *physdev;
|
||||
|
Loading…
Reference in New Issue
Block a user