gpio: pca953x: tighten up indentation
There is no need to split some of the lines. However, improve the style of multi-line comment. On top of this there is no need to have double space. Correct above indentation issues without altering the functionality. Link: http://lkml.kernel.org/r/20191022172922.61232-12-andriy.shevchenko@linux.intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: William Breathitt Gray <vilhelm.gray@gmail.com> Cc: Yury Norov <yury.norov@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
35d13d9489
commit
b27d851736
@ -421,7 +421,9 @@ static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off)
|
|||||||
ret = regmap_read(chip->regmap, inreg, ®_val);
|
ret = regmap_read(chip->regmap, inreg, ®_val);
|
||||||
mutex_unlock(&chip->i2c_lock);
|
mutex_unlock(&chip->i2c_lock);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
/* NOTE: diagnostic already emitted; that's all we should
|
/*
|
||||||
|
* NOTE:
|
||||||
|
* diagnostic already emitted; that's all we should
|
||||||
* do unless gpio_*_value_cansleep() calls become different
|
* do unless gpio_*_value_cansleep() calls become different
|
||||||
* from their nonsleeping siblings (and report faults).
|
* from their nonsleeping siblings (and report faults).
|
||||||
*/
|
*/
|
||||||
@ -736,8 +738,7 @@ static irqreturn_t pca953x_irq_handler(int irq, void *devid)
|
|||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pca953x_irq_setup(struct pca953x_chip *chip,
|
static int pca953x_irq_setup(struct pca953x_chip *chip, int irq_base)
|
||||||
int irq_base)
|
|
||||||
{
|
{
|
||||||
struct i2c_client *client = chip->client;
|
struct i2c_client *client = chip->client;
|
||||||
struct irq_chip *irq_chip = &chip->irq_chip;
|
struct irq_chip *irq_chip = &chip->irq_chip;
|
||||||
@ -872,8 +873,7 @@ static int pca953x_probe(struct i2c_client *client,
|
|||||||
u32 invert = 0;
|
u32 invert = 0;
|
||||||
struct regulator *reg;
|
struct regulator *reg;
|
||||||
|
|
||||||
chip = devm_kzalloc(&client->dev,
|
chip = devm_kzalloc(&client->dev, sizeof(*chip), GFP_KERNEL);
|
||||||
sizeof(struct pca953x_chip), GFP_KERNEL);
|
|
||||||
if (chip == NULL)
|
if (chip == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user