forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
....@@ -1,17 +1,7 @@
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>
155
166 #include <linux/list.h>
177 #include <linux/mfd/syscon.h>
....@@ -39,14 +29,14 @@
3929 struct list_head node;
4030 unsigned int base;
4131 unsigned int nregs;
42
- u32 vals[0];
32
+ u32 vals[];
4333 };
4434
4535 struct uniphier_pinctrl_priv {
4636 struct pinctrl_desc pctldesc;
4737 struct pinctrl_dev *pctldev;
4838 struct regmap *regmap;
49
- struct uniphier_pinctrl_socdata *socdata;
39
+ const struct uniphier_pinctrl_socdata *socdata;
5040 struct list_head reg_regions;
5141 };
5242
....@@ -869,7 +859,7 @@
869859 };
870860
871861 int uniphier_pinctrl_probe(struct platform_device *pdev,
872
- struct uniphier_pinctrl_socdata *socdata)
862
+ const struct uniphier_pinctrl_socdata *socdata)
873863 {
874864 struct device *dev = &pdev->dev;
875865 struct uniphier_pinctrl_priv *priv;