.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/drivers/pinctrl/pinctrl-lantiq.c |
---|
3 | 4 | * 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. |
---|
8 | 5 | * |
---|
9 | 6 | * Copyright (C) 2012 John Crispin <john@phrozen.org> |
---|
10 | 7 | */ |
---|
.. | .. |
---|
80 | 77 | int ret, i; |
---|
81 | 78 | |
---|
82 | 79 | 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); |
---|
85 | 82 | return; |
---|
86 | 83 | } |
---|
87 | 84 | |
---|
88 | 85 | 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); |
---|
91 | 88 | return; |
---|
92 | 89 | } |
---|
93 | 90 | |
---|
.. | .. |
---|
224 | 221 | return i; |
---|
225 | 222 | } |
---|
226 | 223 | |
---|
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 */ |
---|
228 | 225 | static int match_mfp(const struct ltq_pinmux_info *info, int pin) |
---|
229 | 226 | { |
---|
230 | 227 | int i; |
---|