hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/pinctrl/pinctrl-lantiq.c
....@@ -1,10 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/pinctrl/pinctrl-lantiq.c
34 * based on linux/drivers/pinctrl/pinctrl-pxa3xx.c
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 version 2 as
7
- * publishhed by the Free Software Foundation.
85 *
96 * Copyright (C) 2012 John Crispin <john@phrozen.org>
107 */
....@@ -80,14 +77,14 @@
8077 int ret, i;
8178
8279 if (!pins && !groups) {
83
- dev_err(pctldev->dev, "%s defines neither pins nor groups\n",
84
- np->name);
80
+ dev_err(pctldev->dev, "%pOFn defines neither pins nor groups\n",
81
+ np);
8582 return;
8683 }
8784
8885 if (pins && groups) {
89
- dev_err(pctldev->dev, "%s defines both pins and groups\n",
90
- np->name);
86
+ dev_err(pctldev->dev, "%pOFn defines both pins and groups\n",
87
+ np);
9188 return;
9289 }
9390
....@@ -224,7 +221,7 @@
224221 return i;
225222 }
226223
227
-/* dont assume .mfp is linearly mapped. find the mfp with the correct .pin */
224
+/* don't assume .mfp is linearly mapped. find the mfp with the correct .pin */
228225 static int match_mfp(const struct ltq_pinmux_info *info, int pin)
229226 {
230227 int i;