diff options
| author | Takashi Iwai <[email protected]> | 2020-01-03 08:16:36 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2020-01-03 08:24:07 +0000 |
| commit | df76996a2c5369769b23a017b6303f7ecacb277b (patch) | |
| tree | b786cedb97f7f5034325a82424be34948a19d2d7 /sound/core/timer.c | |
| parent | ALSA: docs: Constify snd_device_ops definitions (diff) | |
| download | kernel-df76996a2c5369769b23a017b6303f7ecacb277b.tar.gz kernel-df76996a2c5369769b23a017b6303f7ecacb277b.zip | |
ALSA: timer: Constify snd_timer_hardware definitions
Most of snd_timer_hardware definitions do simply copying to another
struct as-is. Mark them as const for further optimization.
There should be no functional changes by this patch.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'sound/core/timer.c')
| -rw-r--r-- | sound/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index d53bc1f3a48a..8835ff91a893 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -1199,7 +1199,7 @@ static int snd_timer_s_close(struct snd_timer *timer) return 0; } -static struct snd_timer_hardware snd_timer_system = +static const struct snd_timer_hardware snd_timer_system = { .flags = SNDRV_TIMER_HW_FIRST | SNDRV_TIMER_HW_TASKLET, .resolution = 1000000000L / HZ, |
