diff options
| author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 08:19:56 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 04:42:52 -0400 |
| commit | 44d715074d4006d30d3eaa35412f2d31896245ad (patch) | |
| tree | 79c36080168b5c58ee9a2bdd0c42555dcb41d764 /sound/pci/es1938.c | |
| parent | 8130829a9b73dca2bd9cc7ce8ea031405cb1757f (diff) | |
ALSA: es1938: Constify hw_constraints
snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the
const pointers. Constify the corresponding static objects for better
hardening.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/es1938.c')
| -rw-r--r-- | sound/pci/es1938.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index a544cd52f73a..069902a06f00 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
| @@ -436,7 +436,7 @@ static void snd_es1938_reset_fifo(struct es1938 *chip) | |||
| 436 | outb(0, SLSB_REG(chip, RESET)); | 436 | outb(0, SLSB_REG(chip, RESET)); |
| 437 | } | 437 | } |
| 438 | 438 | ||
| 439 | static struct snd_ratnum clocks[2] = { | 439 | static const struct snd_ratnum clocks[2] = { |
| 440 | { | 440 | { |
| 441 | .num = 793800, | 441 | .num = 793800, |
| 442 | .den_min = 1, | 442 | .den_min = 1, |
| @@ -451,7 +451,7 @@ static struct snd_ratnum clocks[2] = { | |||
| 451 | } | 451 | } |
| 452 | }; | 452 | }; |
| 453 | 453 | ||
| 454 | static struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = { | 454 | static const struct snd_pcm_hw_constraint_ratnums hw_constraints_clocks = { |
| 455 | .nrats = 2, | 455 | .nrats = 2, |
| 456 | .rats = clocks, | 456 | .rats = clocks, |
| 457 | }; | 457 | }; |
