diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:16:46 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-03 09:24:20 +0100 |
commit | f8ae2d2919481817d2e942617c203fc792687c66 (patch) | |
tree | a2851521c13cf8ec02118027e8ceed786eeb152e /sound/pci/vx222/vx222.h | |
parent | aad7ebb544072bcb9335fa4eb0fbd1b85a6c495b (diff) | |
download | lwn-f8ae2d2919481817d2e942617c203fc792687c66.tar.gz lwn-f8ae2d2919481817d2e942617c203fc792687c66.zip |
ALSA: vx: Constify snd_vx_hardware and snd_vx_ops definitions
Both snd_vx_hardware and snd_vx_ops are only referred without
modification, hence they can be constified gracefully for further
optimizations.
There should be no functional changes by this patch.
Link: https://lore.kernel.org/r/20200103081714.9560-31-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/vx222/vx222.h')
-rw-r--r-- | sound/pci/vx222/vx222.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/vx222/vx222.h b/sound/pci/vx222/vx222.h index d27af637125c..46ddc6858a61 100644 --- a/sound/pci/vx222/vx222.h +++ b/sound/pci/vx222/vx222.h @@ -31,8 +31,8 @@ struct snd_vx222 { /* we use a lookup table with 148 values, see vx_mixer.c */ #define VX2_AKM_LEVEL_MAX 0x93 -extern struct snd_vx_ops vx222_ops; -extern struct snd_vx_ops vx222_old_ops; +extern const struct snd_vx_ops vx222_ops; +extern const struct snd_vx_ops vx222_old_ops; /* Offset of registers with base equal to portDSP. */ #define VX_RESET_DMA_REGISTER_OFFSET 0x00000008 |