]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: cs46xx: constify snd_pcm_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 26 Jan 2017 15:41:05 +0000 (21:11 +0530)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jan 2017 16:01:48 +0000 (17:01 +0100)
commita6f9dec2a99aaae9950f57ceb3be1ffd897f3867
treeef20f8ce171a625d8922ed9c90f88e8320d38804
parente1a063f43a5e0435ecf8a2b6d42e10e20e8caf61
ALSA: cs46xx: constify snd_pcm_ops structures

Declare snd_pcm_ops structures as const as they are either stored in the
ops field of a snd_pcm_substream structure or passed as an argument to
the function snd_pcm_set_ops. The function argument and the ops field
are of type const, so snd_pcm_ops structures having this property
can be made const too.

File size before: sound/pci/cs46xx/cs46xx_lib.o
   text    data     bss     dec     hex filename
  26047    5304      16   31367    7a87 sound/pci/cs46xx/cs46xx_lib.o

File size after: sound/pci/cs46xx/cs46xx_lib.o
   text    data     bss     dec     hex filename
  27335    4036      16   31387    7a9b sound/pci/cs46xx/cs46xx_lib.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cs46xx/cs46xx_lib.c