diff mbox

[2/2] ASoC: cs53l30: Constify cs53l30_mclk_coeffs and cs53l30_mclkx_coeffs tables

Message ID 1470116911-7592-2-git-send-email-axel.lin@ingics.com (mailing list archive)
State Accepted
Commit 3597fced666469762c8ea64a68f2ce0716776bd8
Headers show

Commit Message

Axel Lin Aug. 2, 2016, 5:48 a.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/cs53l30.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Paul Handrigan Aug. 2, 2016, 7:48 p.m. UTC | #1
On 8/2/16, 12:48 AM, "Axel Lin" <axel.lin@ingics.com> wrote:

>Signed-off-by: Axel Lin <axel.lin@ingics.com>
>---
> sound/soc/codecs/cs53l30.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c
>index 227c556..b69c483 100644
>--- a/sound/soc/codecs/cs53l30.c
>+++ b/sound/soc/codecs/cs53l30.c
>@@ -466,7 +466,7 @@ struct cs53l30_mclk_div {
> 	u8 mclk_int_scale;
> };
> 
>-static struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = {
>+static const struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = {
> 	/* NOTE: Enable MCLK_INT_SCALE to save power. */
> 
> 	/* MCLK, Sample Rate, asp_rate, internal_fs_ratio, mclk_int_scale */
>@@ -511,7 +511,7 @@ struct cs53l30_mclkx_div {
> 	u8 mclkdiv;
> };
> 
>-static struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = {
>+static const struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = {
> 	{5644800,  1, CS53L30_MCLK_DIV_BY_1},
> 	{6000000,  1, CS53L30_MCLK_DIV_BY_1},
> 	{6144000,  1, CS53L30_MCLK_DIV_BY_1},

Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
diff mbox

Patch

diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c
index 227c556..b69c483 100644
--- a/sound/soc/codecs/cs53l30.c
+++ b/sound/soc/codecs/cs53l30.c
@@ -466,7 +466,7 @@  struct cs53l30_mclk_div {
 	u8 mclk_int_scale;
 };
 
-static struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = {
+static const struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = {
 	/* NOTE: Enable MCLK_INT_SCALE to save power. */
 
 	/* MCLK, Sample Rate, asp_rate, internal_fs_ratio, mclk_int_scale */
@@ -511,7 +511,7 @@  struct cs53l30_mclkx_div {
 	u8 mclkdiv;
 };
 
-static struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = {
+static const struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = {
 	{5644800,  1, CS53L30_MCLK_DIV_BY_1},
 	{6000000,  1, CS53L30_MCLK_DIV_BY_1},
 	{6144000,  1, CS53L30_MCLK_DIV_BY_1},