[alsa-devel] [PATCH 0/2] ALSA: add const to snd_ratnum structures

Bhumika Goyal bhumirks at gmail.com
Mon Jun 19 20:41:52 CEST 2017


Declare snd_ratnum structures as const as their reference is only
stored in the rate field of a snd_pcm_hw_constraint_ratnums structure.
This field is of type const, so snd_ratnum structures can be made const.

Bhumika Goyal (2):
  ALSA: sound/isa: constify snd_ratnum structures
  ALSA: sound/pci: add const to snd_ratnum structures

 sound/isa/gus/gus_pcm.c | 2 +-
 sound/isa/sb/sb8_main.c | 2 +-
 sound/pci/bt87x.c       | 2 +-
 sound/pci/ens1370.c     | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

-- 
2.7.4



More information about the Alsa-devel mailing list