.. | .. |
---|
1 | | -/* |
---|
2 | | - * Copyright (C) 2015-2017 Socionext Inc. |
---|
3 | | - * Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
8 | | - * (at your option) any later version. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope that it will be useful, |
---|
11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
13 | | - * GNU General Public License for more details. |
---|
14 | | - */ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
| 2 | +// |
---|
| 3 | +// Copyright (C) 2015-2017 Socionext Inc. |
---|
| 4 | +// Author: Masahiro Yamada <yamada.masahiro@socionext.com> |
---|
15 | 5 | |
---|
16 | 6 | #include <linux/list.h> |
---|
17 | 7 | #include <linux/mfd/syscon.h> |
---|
.. | .. |
---|
39 | 29 | struct list_head node; |
---|
40 | 30 | unsigned int base; |
---|
41 | 31 | unsigned int nregs; |
---|
42 | | - u32 vals[0]; |
---|
| 32 | + u32 vals[]; |
---|
43 | 33 | }; |
---|
44 | 34 | |
---|
45 | 35 | struct uniphier_pinctrl_priv { |
---|
46 | 36 | struct pinctrl_desc pctldesc; |
---|
47 | 37 | struct pinctrl_dev *pctldev; |
---|
48 | 38 | struct regmap *regmap; |
---|
49 | | - struct uniphier_pinctrl_socdata *socdata; |
---|
| 39 | + const struct uniphier_pinctrl_socdata *socdata; |
---|
50 | 40 | struct list_head reg_regions; |
---|
51 | 41 | }; |
---|
52 | 42 | |
---|
.. | .. |
---|
869 | 859 | }; |
---|
870 | 860 | |
---|
871 | 861 | int uniphier_pinctrl_probe(struct platform_device *pdev, |
---|
872 | | - struct uniphier_pinctrl_socdata *socdata) |
---|
| 862 | + const struct uniphier_pinctrl_socdata *socdata) |
---|
873 | 863 | { |
---|
874 | 864 | struct device *dev = &pdev->dev; |
---|
875 | 865 | struct uniphier_pinctrl_priv *priv; |
---|