projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7d97cb
)
ASoC: Intel: cirrus-common: Make const array uid_strings static
author
Colin Ian King
<colin.i.king@gmail.com>
Thu, 3 Nov 2022 12:06:24 +0000
(12:06 +0000)
committer
Mark Brown
<broonie@kernel.org>
Thu, 3 Nov 2022 13:26:15 +0000
(13:26 +0000)
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>
sound/soc/intel/boards/sof_cirrus_common.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/sof_cirrus_common.c
b/sound/soc/intel/boards/sof_cirrus_common.c
index 6e39eda77385b3de8271094a1af464ddb57a270e..851c516c8f5b14d3eeccd5a3ddd05badda47392d 100644
(file)
--- a/
sound/soc/intel/boards/sof_cirrus_common.c
+++ b/
sound/soc/intel/boards/sof_cirrus_common.c
@@
-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;