]> 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)
commitb9d2e489e4a87b1cc75d8971482eab857a24b794
tree7377d308cf07b56e77d0b23943971b075afb4bb1
parent0864ef779a3ad0675275b9745e5a7dabbf25a7ae
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