Commit b1911710 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

gpiolib: Join string literals back

For easy grepping on debug purposes join string literals back in the
messages.

While here, fix couple of small indentation issues.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2b6c83ca
...@@ -1664,8 +1664,7 @@ static void gpiochip_set_cascaded_irqchip(struct gpio_chip *gpiochip, ...@@ -1664,8 +1664,7 @@ static void gpiochip_set_cascaded_irqchip(struct gpio_chip *gpiochip,
if (parent_handler) { if (parent_handler) {
if (gpiochip->can_sleep) { if (gpiochip->can_sleep) {
chip_err(gpiochip, chip_err(gpiochip,
"you cannot have chained interrupts on a " "you cannot have chained interrupts on a chip that may sleep\n");
"chip that may sleep\n");
return; return;
} }
/* /*
...@@ -1850,8 +1849,7 @@ static int gpiochip_add_irqchip(struct gpio_chip *gpiochip, ...@@ -1850,8 +1849,7 @@ static int gpiochip_add_irqchip(struct gpio_chip *gpiochip,
return 0; return 0;
if (gpiochip->irq.parent_handler && gpiochip->can_sleep) { if (gpiochip->irq.parent_handler && gpiochip->can_sleep) {
chip_err(gpiochip, "you cannot have chained interrupts on a " chip_err(gpiochip, "you cannot have chained interrupts on a chip that may sleep\n");
"chip that may sleep\n");
return -EINVAL; return -EINVAL;
} }
...@@ -3272,8 +3270,8 @@ int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset) ...@@ -3272,8 +3270,8 @@ int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset)
if (test_bit(FLAG_IS_OUT, &desc->flags)) { if (test_bit(FLAG_IS_OUT, &desc->flags)) {
chip_err(chip, chip_err(chip,
"%s: tried to flag a GPIO set as output for IRQ\n", "%s: tried to flag a GPIO set as output for IRQ\n",
__func__); __func__);
return -EIO; return -EIO;
} }
...@@ -4228,7 +4226,7 @@ static int __init gpiolib_dev_init(void) ...@@ -4228,7 +4226,7 @@ static int __init gpiolib_dev_init(void)
int ret; int ret;
/* Register GPIO sysfs bus */ /* Register GPIO sysfs bus */
ret = bus_register(&gpio_bus_type); ret = bus_register(&gpio_bus_type);
if (ret < 0) { if (ret < 0) {
pr_err("gpiolib: could not register GPIO bus type\n"); pr_err("gpiolib: could not register GPIO bus type\n");
return ret; return ret;
......
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