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:
Colin Ian King 2022-11-03 12:06:24 +00:00 committed by Mark Brown
parent f7d97cb564
commit b43d0c0a42
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;