forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/clk/pxa/clk-pxa.h
....@@ -1,14 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Marvell PXA family clocks
34 *
45 * Copyright (C) 2014 Robert Jarzmik
56 *
67 * Common clock code for PXA clocks ("CKEN" type clocks + DT)
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; version 2 of the License.
11
- *
128 */
139 #ifndef _CLK_PXA_
1410 #define _CLK_PXA_
....@@ -23,11 +19,11 @@
2319 #define MUX_RO_RATE_RO_OPS(name, clk_name) \
2420 static struct clk_hw name ## _mux_hw; \
2521 static struct clk_hw name ## _rate_hw; \
26
- static struct clk_ops name ## _mux_ops = { \
22
+ static const struct clk_ops name ## _mux_ops = { \
2723 .get_parent = name ## _get_parent, \
2824 .set_parent = dummy_clk_set_parent, \
2925 }; \
30
- static struct clk_ops name ## _rate_ops = { \
26
+ static const struct clk_ops name ## _rate_ops = { \
3127 .recalc_rate = name ## _get_rate, \
3228 }; \
3329 static struct clk * __init clk_register_ ## name(void) \
....@@ -42,7 +38,7 @@
4238
4339 #define RATE_RO_OPS(name, clk_name) \
4440 static struct clk_hw name ## _rate_hw; \
45
- static const struct clk_ops name ## _rate_ops = { \
41
+ static const struct clk_ops name ## _rate_ops = { \
4642 .recalc_rate = name ## _get_rate, \
4743 }; \
4844 static struct clk * __init clk_register_ ## name(void) \
....@@ -57,7 +53,7 @@
5753
5854 #define RATE_OPS(name, clk_name) \
5955 static struct clk_hw name ## _rate_hw; \
60
- static struct clk_ops name ## _rate_ops = { \
56
+ static const struct clk_ops name ## _rate_ops = { \
6157 .recalc_rate = name ## _get_rate, \
6258 .set_rate = name ## _set_rate, \
6359 .determine_rate = name ## _determine_rate, \