mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
pinctrl: remove unnecessary max pin number
This patch removes maxpin member in the pin control descriptor because we don't need this value as we enumerate a pin space using offset. Signed-off-by: Chanho Park <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
706e8520e8
commit
0d2006bbf0
4 changed files with 0 additions and 8 deletions
|
|
@ -354,7 +354,6 @@ static int pinctrl_pins_show(struct seq_file *s, void *what)
|
|||
unsigned i, pin;
|
||||
|
||||
seq_printf(s, "registered pins: %d\n", pctldev->desc->npins);
|
||||
seq_printf(s, "max pin number: %d\n", pctldev->desc->maxpin);
|
||||
|
||||
/* The pin number can be retrived from the pin controller descriptor */
|
||||
for (i = 0; i < pctldev->desc->npins; i++) {
|
||||
|
|
|
|||
|
|
@ -1086,7 +1086,6 @@ static struct pinctrl_desc sirfsoc_pinmux_desc = {
|
|||
.name = DRIVER_NAME,
|
||||
.pins = sirfsoc_pads,
|
||||
.npins = ARRAY_SIZE(sirfsoc_pads),
|
||||
.maxpin = SIRFSOC_NUM_PADS - 1,
|
||||
.pctlops = &sirfsoc_pctrl_ops,
|
||||
.pmxops = &sirfsoc_pinmux_ops,
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
|
|
@ -1048,7 +1048,6 @@ static struct pinctrl_desc u300_pmx_desc = {
|
|||
.name = DRIVER_NAME,
|
||||
.pins = u300_pads,
|
||||
.npins = ARRAY_SIZE(u300_pads),
|
||||
.maxpin = U300_NUM_PADS-1,
|
||||
.pctlops = &u300_pctrl_ops,
|
||||
.pmxops = &u300_pmx_ops,
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue