]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
pinctrl: remove unnecessary max pin number
authorChanho Park <chanho61.park@samsung.com>
Tue, 3 Jan 2012 07:47:51 +0000 (16:47 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 3 Jan 2012 08:10:09 +0000 (09:10 +0100)
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 <chanho61.park@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
drivers/pinctrl/pinctrl-sirf.c
drivers/pinctrl/pinctrl-u300.c
include/linux/pinctrl/pinctrl.h

index 79c56d90fcc59968c92280313fc1309805f370d8..569bdb3ef1046155b021648390087a9010591d3b 100644 (file)
@@ -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++) {
index 99e688e07ea0b1dbbac828948c9aab1aa86ca6f4..6b3534cc051aa3618a5f4a9a1bab8f7787815ac0 100644 (file)
@@ -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,
index 7e89b367a7e59a4dd752e9c0f22ff65c39830e7a..c8d02f1c2b5e82e7efc6af5dbd01517c49d0510a 100644 (file)
@@ -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,
index 9809a94f151b994d4afcb1ab5e104f0488e19c31..8bd22ee7aa098c6f4cda77276baaf47e89c8823e 100644 (file)
@@ -92,10 +92,6 @@ struct pinctrl_ops {
  *     this pin controller
  * @npins: number of descriptors in the array, usually just ARRAY_SIZE()
  *     of the pins field above
- * @maxpin: since pin spaces may be sparse, there can he "holes" in the
- *     pin range, this attribute gives the maximum pin number in the
- *     total range. This should not be lower than npins for example,
- *     but may be equal to npins if you have no holes in the pin range.
  * @pctlops: pin control operation vtable, to support global concepts like
  *     grouping of pins, this is optional.
  * @pmxops: pinmux operations vtable, if you support pinmuxing in your driver
@@ -107,7 +103,6 @@ struct pinctrl_desc {
        const char *name;
        struct pinctrl_pin_desc const *pins;
        unsigned int npins;
-       unsigned int maxpin;
        struct pinctrl_ops *pctlops;
        struct pinmux_ops *pmxops;
        struct pinconf_ops *confops;