clk: at91: Mark struct clk_range as const
authorStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 21:15:54 +0000 (14:15 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 21:16:26 +0000 (14:16 -0700)
It's just some static data that doesn't get changed after being used.
Mark it const everywhere.

Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/at91sam9260.c
drivers/clk/at91/at91sam9rl.c
drivers/clk/at91/at91sam9x5.c
drivers/clk/at91/pmc.h
drivers/clk/at91/sam9x60.c
drivers/clk/at91/sama5d2.c
drivers/clk/at91/sama5d4.c

index b1af5a39542387101c5bd1931cb60f7c0e2979d4..0aabe49aed09449b153de865adc739dc8e22eacf 100644 (file)
@@ -41,7 +41,7 @@ static u8 sam9260_plla_out[] = { 0, 2 };
 
 static u16 sam9260_plla_icpll[] = { 1, 1 };
 
-static struct clk_range sam9260_plla_outputs[] = {
+static const struct clk_range sam9260_plla_outputs[] = {
        { .min = 80000000, .max = 160000000 },
        { .min = 150000000, .max = 240000000 },
 };
@@ -58,7 +58,7 @@ static u8 sam9260_pllb_out[] = { 1 };
 
 static u16 sam9260_pllb_icpll[] = { 1 };
 
-static struct clk_range sam9260_pllb_outputs[] = {
+static const struct clk_range sam9260_pllb_outputs[] = {
        { .min = 70000000, .max = 130000000 },
 };
 
@@ -128,7 +128,7 @@ static u8 sam9g20_plla_out[] = { 0, 1, 2, 3, 0, 1, 2, 3 };
 
 static u16 sam9g20_plla_icpll[] = { 0, 0, 0, 0, 1, 1, 1, 1 };
 
-static struct clk_range sam9g20_plla_outputs[] = {
+static const struct clk_range sam9g20_plla_outputs[] = {
        { .min = 745000000, .max = 800000000 },
        { .min = 695000000, .max = 750000000 },
        { .min = 645000000, .max = 700000000 },
@@ -151,7 +151,7 @@ static u8 sam9g20_pllb_out[] = { 0 };
 
 static u16 sam9g20_pllb_icpll[] = { 0 };
 
-static struct clk_range sam9g20_pllb_outputs[] = {
+static const struct clk_range sam9g20_pllb_outputs[] = {
        { .min = 30000000, .max = 100000000 },
 };
 
@@ -182,7 +182,7 @@ static const struct clk_master_characteristics sam9261_mck_characteristics = {
        .divisors = { 1, 2, 4, 0 },
 };
 
-static struct clk_range sam9261_plla_outputs[] = {
+static const struct clk_range sam9261_plla_outputs[] = {
        { .min = 80000000, .max = 200000000 },
        { .min = 190000000, .max = 240000000 },
 };
@@ -199,7 +199,7 @@ static u8 sam9261_pllb_out[] = { 1 };
 
 static u16 sam9261_pllb_icpll[] = { 1 };
 
-static struct clk_range sam9261_pllb_outputs[] = {
+static const struct clk_range sam9261_pllb_outputs[] = {
        { .min = 70000000, .max = 130000000 },
 };
 
@@ -262,7 +262,7 @@ static const struct clk_master_characteristics sam9263_mck_characteristics = {
        .divisors = { 1, 2, 4, 0 },
 };
 
-static struct clk_range sam9263_pll_outputs[] = {
+static const struct clk_range sam9263_pll_outputs[] = {
        { .min = 80000000, .max = 200000000 },
        { .min = 190000000, .max = 240000000 },
 };
index 5aeef68b4bddbb9ef7f86ee49e94af67f434bdc9..0ac34cdaa106932fb797c534dae04273d26b8aad 100644 (file)
@@ -14,7 +14,7 @@ static const struct clk_master_characteristics sam9rl_mck_characteristics = {
 
 static u8 sam9rl_plla_out[] = { 0, 2 };
 
-static struct clk_range sam9rl_plla_outputs[] = {
+static const struct clk_range sam9rl_plla_outputs[] = {
        { .min = 80000000, .max = 200000000 },
        { .min = 190000000, .max = 240000000 },
 };
index f5cfcbd85f10901d7c3d39db63e59fbb44ce056c..0855f3a80cc79ea8ea6933192964e02c0a2ef079 100644 (file)
@@ -17,7 +17,7 @@ static u8 plla_out[] = { 0, 1, 2, 3, 0, 1, 2, 3 };
 
 static u16 plla_icpll[] = { 0, 0, 0, 0, 1, 1, 1, 1 };
 
-static struct clk_range plla_outputs[] = {
+static const struct clk_range plla_outputs[] = {
        { .min = 745000000, .max = 800000000 },
        { .min = 695000000, .max = 750000000 },
        { .min = 645000000, .max = 700000000 },
index fb9e9c4cdc8dc9124c6a128cbf8b295d861396e1..775b77a433f51a9d387736310d41fc54e3a69f87 100644 (file)
@@ -66,7 +66,7 @@ extern const struct clk_pll_layout sama5d3_pll_layout;
 struct clk_pll_characteristics {
        struct clk_range input;
        int num_output;
-       struct clk_range *output;
+       const struct clk_range *output;
        u16 *icpll;
        u8 *out;
        u8 upll : 1;
index 0979c757cc5874791e22d840846ff0b934b2ffab..9790ddfa5b3cba525c368bc4860a7a64067aac96 100644 (file)
@@ -21,7 +21,7 @@ static const struct clk_master_layout sam9x60_master_layout = {
        .offset = 0x28,
 };
 
-static struct clk_range plla_outputs[] = {
+static const struct clk_range plla_outputs[] = {
        { .min = 300000000, .max = 600000000 },
 };
 
@@ -31,7 +31,7 @@ static const struct clk_pll_characteristics plla_characteristics = {
        .output = plla_outputs,
 };
 
-static struct clk_range upll_outputs[] = {
+static const struct clk_range upll_outputs[] = {
        { .min = 300000000, .max = 500000000 },
 };
 
index 096156850e081da1b8ee5e9ab2064716e556bd97..f3d3f6c8e2614951fd908ba6b684ba35d384d628 100644 (file)
@@ -16,7 +16,7 @@ static u8 plla_out[] = { 0 };
 
 static u16 plla_icpll[] = { 0 };
 
-static struct clk_range plla_outputs[] = {
+static const struct clk_range plla_outputs[] = {
        { .min = 600000000, .max = 1200000000 },
 };
 
index 840edca778213374ac9441c39b48fee373b81a43..25b156d4e645f6daf4edea37f16cede5ac3ce4b9 100644 (file)
@@ -16,7 +16,7 @@ static u8 plla_out[] = { 0 };
 
 static u16 plla_icpll[] = { 0 };
 
-static struct clk_range plla_outputs[] = {
+static const struct clk_range plla_outputs[] = {
        { .min = 600000000, .max = 1200000000 },
 };