]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Constify ratden/ratnum constraints
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 28 Oct 2015 10:37:53 +0000 (11:37 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Oct 2015 10:42:22 +0000 (11:42 +0100)
commit33db492962c353fa8f71636d0f7d1aa22803e315
treea09b4a2ff85aeeb4f2d71f7f6b35866aa8566689
parent7fa07bd24ded4b20d1594bd0bcb416567c383825
ALSA: Constify ratden/ratnum constraints

The ALSA core does not modify the constraints provided by a driver. Most
constraint helper functions already take a const pointer to the constraint
description, the exception at the moment being the ratden and ratnum
constraints. Make those const as well, this allows a driver to declare them
as const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/core/pcm_lib.c