diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-15 00:37:03 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-03-27 17:47:12 -0400 |
commit | 3c93600d3e7aa28d4e71790adda9be0e3baa2f9f (patch) | |
tree | dcfa5b9dee89aefded834e6c9b49ddce94e0eb83 | |
parent | 1164d73a98797970596023d0c54ea40855aaa1ce (diff) |
pinctrl: at91: Fix checkpatch errors
Fixes the following types of checkpatch errors:
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo* bar" should be "foo *bar"
ERROR: space required before the open parenthesis '('
ERROR: "(foo*)" should be "(foo *)"
ERROR: space required after that ',' (ctx:WxV)
ERROR: "(foo*const*)" should be "(foo *const*)"
ERROR: space required before that '*' (ctx:VxB)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-at91.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 353c7bf041f2..03d8bed17d31 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c | |||
@@ -303,7 +303,7 @@ static const struct pinctrl_ops at91_pctrl_ops = { | |||
303 | .dt_free_map = at91_dt_free_map, | 303 | .dt_free_map = at91_dt_free_map, |
304 | }; | 304 | }; |
305 | 305 | ||
306 | static void __iomem * pin_to_controller(struct at91_pinctrl *info, | 306 | static void __iomem *pin_to_controller(struct at91_pinctrl *info, |
307 | unsigned int bank) | 307 | unsigned int bank) |
308 | { | 308 | { |
309 | return gpio_chips[bank]->regbase; | 309 | return gpio_chips[bank]->regbase; |
@@ -501,7 +501,7 @@ static void at91_pin_dbg(const struct device *dev, const struct at91_pmx_pin *pi | |||
501 | } | 501 | } |
502 | } | 502 | } |
503 | 503 | ||
504 | static int pin_check_config(struct at91_pinctrl *info, const char* name, | 504 | static int pin_check_config(struct at91_pinctrl *info, const char *name, |
505 | int index, const struct at91_pmx_pin *pin) | 505 | int index, const struct at91_pmx_pin *pin) |
506 | { | 506 | { |
507 | int mux; | 507 | int mux; |
@@ -579,7 +579,7 @@ static int at91_pmx_enable(struct pinctrl_dev *pctldev, unsigned selector, | |||
579 | pio = pin_to_controller(info, pin->bank); | 579 | pio = pin_to_controller(info, pin->bank); |
580 | mask = pin_to_mask(pin->pin); | 580 | mask = pin_to_mask(pin->pin); |
581 | at91_mux_disable_interrupt(pio, mask); | 581 | at91_mux_disable_interrupt(pio, mask); |
582 | switch(pin->mux) { | 582 | switch (pin->mux) { |
583 | case AT91_MUX_GPIO: | 583 | case AT91_MUX_GPIO: |
584 | at91_mux_gpio_enable(pio, mask, 1); | 584 | at91_mux_gpio_enable(pio, mask, 1); |
585 | break; | 585 | break; |
@@ -944,7 +944,7 @@ static int at91_pinctrl_probe_dt(struct platform_device *pdev, | |||
944 | return -ENODEV; | 944 | return -ENODEV; |
945 | 945 | ||
946 | info->dev = &pdev->dev; | 946 | info->dev = &pdev->dev; |
947 | info->ops = (struct at91_pinctrl_mux_ops*) | 947 | info->ops = (struct at91_pinctrl_mux_ops *) |
948 | of_match_device(at91_pinctrl_of_match, &pdev->dev)->data; | 948 | of_match_device(at91_pinctrl_of_match, &pdev->dev)->data; |
949 | at91_pinctrl_child_count(info, np); | 949 | at91_pinctrl_child_count(info, np); |
950 | 950 | ||
@@ -1002,7 +1002,7 @@ static int at91_pinctrl_probe(struct platform_device *pdev) | |||
1002 | { | 1002 | { |
1003 | struct at91_pinctrl *info; | 1003 | struct at91_pinctrl *info; |
1004 | struct pinctrl_pin_desc *pdesc; | 1004 | struct pinctrl_pin_desc *pdesc; |
1005 | int ret, i, j ,k; | 1005 | int ret, i, j, k; |
1006 | 1006 | ||
1007 | info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); | 1007 | info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); |
1008 | if (!info) | 1008 | if (!info) |
@@ -1509,7 +1509,7 @@ static int at91_gpio_probe(struct platform_device *pdev) | |||
1509 | goto err; | 1509 | goto err; |
1510 | } | 1510 | } |
1511 | 1511 | ||
1512 | at91_chip->ops = (struct at91_pinctrl_mux_ops*) | 1512 | at91_chip->ops = (struct at91_pinctrl_mux_ops *) |
1513 | of_match_device(at91_gpio_of_match, &pdev->dev)->data; | 1513 | of_match_device(at91_gpio_of_match, &pdev->dev)->data; |
1514 | at91_chip->pioc_virq = irq; | 1514 | at91_chip->pioc_virq = irq; |
1515 | at91_chip->pioc_idx = alias_idx; | 1515 | at91_chip->pioc_idx = alias_idx; |
@@ -1546,7 +1546,8 @@ static int at91_gpio_probe(struct platform_device *pdev) | |||
1546 | chip->ngpio = ngpio; | 1546 | chip->ngpio = ngpio; |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | names = devm_kzalloc(&pdev->dev, sizeof(char*) * chip->ngpio, GFP_KERNEL); | 1549 | names = devm_kzalloc(&pdev->dev, sizeof(char *) * chip->ngpio, |
1550 | GFP_KERNEL); | ||
1550 | 1551 | ||
1551 | if (!names) { | 1552 | if (!names) { |
1552 | ret = -ENOMEM; | 1553 | ret = -ENOMEM; |
@@ -1556,7 +1557,7 @@ static int at91_gpio_probe(struct platform_device *pdev) | |||
1556 | for (i = 0; i < chip->ngpio; i++) | 1557 | for (i = 0; i < chip->ngpio; i++) |
1557 | names[i] = kasprintf(GFP_KERNEL, "pio%c%d", alias_idx + 'A', i); | 1558 | names[i] = kasprintf(GFP_KERNEL, "pio%c%d", alias_idx + 'A', i); |
1558 | 1559 | ||
1559 | chip->names = (const char*const*)names; | 1560 | chip->names = (const char *const *)names; |
1560 | 1561 | ||
1561 | range = &at91_chip->range; | 1562 | range = &at91_chip->range; |
1562 | range->name = chip->label; | 1563 | range->name = chip->label; |