Commit 1f2b2398 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Linus Walleij

pinctrl-msm: Fix spelling misstakes and missing consts

Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 376f413a
...@@ -96,7 +96,7 @@ static int msm_get_group_pins(struct pinctrl_dev *pctldev, ...@@ -96,7 +96,7 @@ static int msm_get_group_pins(struct pinctrl_dev *pctldev,
return 0; return 0;
} }
static struct pinctrl_ops msm_pinctrl_ops = { static const struct pinctrl_ops msm_pinctrl_ops = {
.get_groups_count = msm_get_groups_count, .get_groups_count = msm_get_groups_count,
.get_group_name = msm_get_group_name, .get_group_name = msm_get_group_name,
.get_group_pins = msm_get_group_pins, .get_group_pins = msm_get_group_pins,
...@@ -190,7 +190,7 @@ static void msm_pinmux_disable(struct pinctrl_dev *pctldev, ...@@ -190,7 +190,7 @@ static void msm_pinmux_disable(struct pinctrl_dev *pctldev,
spin_unlock_irqrestore(&pctrl->lock, flags); spin_unlock_irqrestore(&pctrl->lock, flags);
} }
static struct pinmux_ops msm_pinmux_ops = { static const struct pinmux_ops msm_pinmux_ops = {
.get_functions_count = msm_get_functions_count, .get_functions_count = msm_get_functions_count,
.get_function_name = msm_get_function_name, .get_function_name = msm_get_function_name,
.get_function_groups = msm_get_function_groups, .get_function_groups = msm_get_function_groups,
...@@ -378,7 +378,7 @@ static int msm_config_group_set(struct pinctrl_dev *pctldev, ...@@ -378,7 +378,7 @@ static int msm_config_group_set(struct pinctrl_dev *pctldev,
return 0; return 0;
} }
static struct pinconf_ops msm_pinconf_ops = { static const struct pinconf_ops msm_pinconf_ops = {
.pin_config_get = msm_config_get, .pin_config_get = msm_config_get,
.pin_config_set = msm_config_set, .pin_config_set = msm_config_set,
.pin_config_group_get = msm_config_group_get, .pin_config_group_get = msm_config_group_get,
...@@ -518,7 +518,7 @@ static void msm_gpio_dbg_show_one(struct seq_file *s, ...@@ -518,7 +518,7 @@ static void msm_gpio_dbg_show_one(struct seq_file *s,
int pull; int pull;
u32 ctl_reg; u32 ctl_reg;
const char *pulls[] = { static const char * const pulls[] = {
"no pull", "no pull",
"pull down", "pull down",
"keeper", "keeper",
...@@ -545,7 +545,7 @@ static void msm_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) ...@@ -545,7 +545,7 @@ static void msm_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
for (i = 0; i < chip->ngpio; i++, gpio++) { for (i = 0; i < chip->ngpio; i++, gpio++) {
msm_gpio_dbg_show_one(s, NULL, chip, i, gpio); msm_gpio_dbg_show_one(s, NULL, chip, i, gpio);
seq_printf(s, "\n"); seq_puts(s, "\n");
} }
} }
...@@ -868,7 +868,7 @@ static void msm_gpio_irq_handler(unsigned int irq, struct irq_desc *desc) ...@@ -868,7 +868,7 @@ static void msm_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
chained_irq_enter(chip, desc); chained_irq_enter(chip, desc);
/* /*
* Each pin have it's own IRQ status register, so use * Each pin has it's own IRQ status register, so use
* enabled_irq bitmap to limit the number of reads. * enabled_irq bitmap to limit the number of reads.
*/ */
for_each_set_bit(i, pctrl->enabled_irqs, pctrl->chip.ngpio) { for_each_set_bit(i, pctrl->enabled_irqs, pctrl->chip.ngpio) {
...@@ -881,7 +881,7 @@ static void msm_gpio_irq_handler(unsigned int irq, struct irq_desc *desc) ...@@ -881,7 +881,7 @@ static void msm_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
} }
} }
/* No interrutps where flagged */ /* No interrupts were flagged */
if (handled == 0) if (handled == 0)
handle_bad_irq(irq, desc); handle_bad_irq(irq, desc);
......
...@@ -352,7 +352,7 @@ static const unsigned int sdc2_data_pins[] = { 151 }; ...@@ -352,7 +352,7 @@ static const unsigned int sdc2_data_pins[] = { 151 };
MSM_MUX_##f6, \ MSM_MUX_##f6, \
MSM_MUX_##f7 \ MSM_MUX_##f7 \
}, \ }, \
.ctl_reg = 0x1000 + 0x10 * id , \ .ctl_reg = 0x1000 + 0x10 * id, \
.io_reg = 0x1004 + 0x10 * id, \ .io_reg = 0x1004 + 0x10 * id, \
.intr_cfg_reg = 0x1008 + 0x10 * id, \ .intr_cfg_reg = 0x1008 + 0x10 * id, \
.intr_status_reg = 0x100c + 0x10 * id, \ .intr_status_reg = 0x100c + 0x10 * id, \
...@@ -602,7 +602,7 @@ static int msm8x74_pinctrl_probe(struct platform_device *pdev) ...@@ -602,7 +602,7 @@ static int msm8x74_pinctrl_probe(struct platform_device *pdev)
return msm_pinctrl_probe(pdev, &msm8x74_pinctrl); return msm_pinctrl_probe(pdev, &msm8x74_pinctrl);
} }
static struct of_device_id msm8x74_pinctrl_of_match[] = { static const struct of_device_id msm8x74_pinctrl_of_match[] = {
{ .compatible = "qcom,msm8x74-pinctrl", }, { .compatible = "qcom,msm8x74-pinctrl", },
{ }, { },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment