pinctrl: single: search for the bits property when parsing bits
authorAxel Haslam <ahaslam@baylibre.com>
Wed, 9 Nov 2016 14:54:01 +0000 (15:54 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Nov 2016 20:29:37 +0000 (21:29 +0100)
The pcs_parse_bits_in_pinctrl_entry function should search
for the "pinctrl-single,bits" and not "pinctrl-single,pins"

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c

index f36a9f1f3949e0c502a56f7577002ccfa57cd59c..2b196e53d937a0cb86cbf81889ae432c511f3d32 100644 (file)
@@ -1223,7 +1223,7 @@ static int pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs,
                                                unsigned *num_maps,
                                                const char **pgnames)
 {
-       const char *name = "pinctrl-single,pins";
+       const char *name = "pinctrl-single,bits";
        struct pcs_func_vals *vals;
        int rows, *pins, found = 0, res = -ENOMEM, i;
        int npins_in_row;