Skip to content

Commit

Permalink
ALSA: sparc: More constifications
Browse files Browse the repository at this point in the history
Apply const prefix to the static tables for rates, bits and strings.

Just for minor optimization and no functional changes.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jan 5, 2020
1 parent 5f3aca1 commit 121f46b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sound/sparc/cs4231.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ struct snd_cs4231 {
* Some variables
*/

static unsigned char freq_bits[14] = {
static const unsigned char freq_bits[14] = {
/* 5510 */ 0x00 | CS4231_XTAL2,
/* 6620 */ 0x0E | CS4231_XTAL2,
/* 8000 */ 0x00 | CS4231_XTAL1,
Expand Down Expand Up @@ -218,7 +218,7 @@ static int snd_cs4231_xrate(struct snd_pcm_runtime *runtime)
&hw_constraints_rates);
}

static unsigned char snd_cs4231_original_image[32] =
static const unsigned char snd_cs4231_original_image[32] =
{
0x00, /* 00/00 - lic */
0x00, /* 01/01 - ric */
Expand Down
2 changes: 1 addition & 1 deletion sound/sparc/dbri.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module_param(dbri_debug, int, 0644);
MODULE_PARM_DESC(dbri_debug, "Debug value for Sun DBRI soundcard.");

#ifdef DBRI_DEBUG
static char *cmds[] = {
static const char * const cmds[] = {
"WAIT", "PAUSE", "JUMP", "IIQ", "REX", "SDP", "CDP", "DTS",
"SSP", "CHI", "NT", "TE", "CDEC", "TEST", "CDM", "RESRV"
};
Expand Down

0 comments on commit 121f46b

Please sign in to comment.