]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_sai: Constify rate constraints
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 22 Oct 2015 08:43:23 +0000 (10:43 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 Oct 2015 23:52:52 +0000 (08:52 +0900)
commit970137071144b23ff643aa4945ee5d2de89a1901
tree7377d308cf07b56e77d0b23943971b075afb4bb1
parent9e7cd3c78b789ea6894f91798fbe1164cdef700e
ASoC: fsl_sai: Constify rate constraints

The rate constraints in this driver are shared between all device
instances. It should not be (and is not) modified at runtime, so make them
const.

While we are at it also change the type of the rates array from u32 to
unsigned int. While both resolve to the same type, u32 is usually used to
empathize that the value is for a 32-bit hardware register or similar which
makes it slightly confusing in this context.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c