Skip to content

Commit 4aad0ad

Browse files
andy-shevlinusw
authored andcommitted
pinctrl: aw9523: Fix indentation in a few places
In the comment, function prototype, and array of strings indentation is kinda broken. Reindent that. Signed-off-by: Andy Shevchenko <[email protected]> Message-ID: <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 7b8b9b5 commit 4aad0ad

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

drivers/pinctrl/pinctrl-aw9523.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
33
* Awinic AW9523B i2c pin controller driver
4-
* Copyright (c) 2020, AngeloGioacchino Del Regno
5-
4+
* Copyright (c) 2020, AngeloGioacchino Del Regno <[email protected]>
65
*/
76

87
#include <linux/bitfield.h>
@@ -139,9 +138,10 @@ static const struct pinctrl_ops aw9523_pinctrl_ops = {
139138
};
140139

141140
static const char * const gpio_pwm_groups[] = {
142-
"gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5",
143-
"gpio6", "gpio7", "gpio8", "gpio9", "gpio10", "gpio11",
144-
"gpio12", "gpio13", "gpio14", "gpio15"
141+
"gpio0", "gpio1", "gpio2", "gpio3", /* 0-3 */
142+
"gpio4", "gpio5", "gpio6", "gpio7", /* 4-7 */
143+
"gpio8", "gpio9", "gpio10", "gpio11", /* 8-11 */
144+
"gpio12", "gpio13", "gpio14", "gpio15", /* 11-15 */
145145
};
146146

147147
/* Warning: Do NOT reorder this array */
@@ -388,8 +388,8 @@ static int aw9523_get_pin_direction(struct regmap *regmap, u8 pin, u8 n)
388388
*
389389
* Return: Zero for success or negative number for error
390390
*/
391-
static int aw9523_get_port_state(struct regmap *regmap, u8 pin,
392-
u8 regbit, unsigned int *state)
391+
static int aw9523_get_port_state(struct regmap *regmap, u8 pin, u8 regbit,
392+
unsigned int *state)
393393
{
394394
u8 reg;
395395
int dir;
@@ -984,8 +984,7 @@ static int aw9523_probe(struct i2c_client *client)
984984
}
985985

986986
mutex_init(&awi->i2c_lock);
987-
lockdep_set_subclass(&awi->i2c_lock,
988-
i2c_adapter_depth(client->adapter));
987+
lockdep_set_subclass(&awi->i2c_lock, i2c_adapter_depth(client->adapter));
989988

990989
pdesc = devm_kzalloc(dev, sizeof(*pdesc), GFP_KERNEL);
991990
if (!pdesc)

0 commit comments

Comments
 (0)