| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Marvell PXA family clocks |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2014 Robert Jarzmik |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 | | - * |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | #ifndef _CLK_PXA_ |
|---|
| 14 | 10 | #define _CLK_PXA_ |
|---|
| .. | .. |
|---|
| 23 | 19 | #define MUX_RO_RATE_RO_OPS(name, clk_name) \ |
|---|
| 24 | 20 | static struct clk_hw name ## _mux_hw; \ |
|---|
| 25 | 21 | static struct clk_hw name ## _rate_hw; \ |
|---|
| 26 | | - static struct clk_ops name ## _mux_ops = { \ |
|---|
| 22 | + static const struct clk_ops name ## _mux_ops = { \ |
|---|
| 27 | 23 | .get_parent = name ## _get_parent, \ |
|---|
| 28 | 24 | .set_parent = dummy_clk_set_parent, \ |
|---|
| 29 | 25 | }; \ |
|---|
| 30 | | - static struct clk_ops name ## _rate_ops = { \ |
|---|
| 26 | + static const struct clk_ops name ## _rate_ops = { \ |
|---|
| 31 | 27 | .recalc_rate = name ## _get_rate, \ |
|---|
| 32 | 28 | }; \ |
|---|
| 33 | 29 | static struct clk * __init clk_register_ ## name(void) \ |
|---|
| .. | .. |
|---|
| 42 | 38 | |
|---|
| 43 | 39 | #define RATE_RO_OPS(name, clk_name) \ |
|---|
| 44 | 40 | 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 = { \ |
|---|
| 46 | 42 | .recalc_rate = name ## _get_rate, \ |
|---|
| 47 | 43 | }; \ |
|---|
| 48 | 44 | static struct clk * __init clk_register_ ## name(void) \ |
|---|
| .. | .. |
|---|
| 57 | 53 | |
|---|
| 58 | 54 | #define RATE_OPS(name, clk_name) \ |
|---|
| 59 | 55 | static struct clk_hw name ## _rate_hw; \ |
|---|
| 60 | | - static struct clk_ops name ## _rate_ops = { \ |
|---|
| 56 | + static const struct clk_ops name ## _rate_ops = { \ |
|---|
| 61 | 57 | .recalc_rate = name ## _get_rate, \ |
|---|
| 62 | 58 | .set_rate = name ## _set_rate, \ |
|---|
| 63 | 59 | .determine_rate = name ## _determine_rate, \ |
|---|