|
1 | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | 2 | /* |
3 | 3 | * Awinic AW9523B i2c pin controller driver |
4 | | - * Copyright (c) 2020, AngeloGioacchino Del Regno |
5 | | - * <angelogioacchino.delregno@somainline.org> |
| 4 | + * Copyright (c) 2020, AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org> |
6 | 5 | */ |
7 | 6 |
|
8 | 7 | #include <linux/bitfield.h> |
@@ -139,9 +138,10 @@ static const struct pinctrl_ops aw9523_pinctrl_ops = { |
139 | 138 | }; |
140 | 139 |
|
141 | 140 | 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 */ |
145 | 145 | }; |
146 | 146 |
|
147 | 147 | /* Warning: Do NOT reorder this array */ |
@@ -388,8 +388,8 @@ static int aw9523_get_pin_direction(struct regmap *regmap, u8 pin, u8 n) |
388 | 388 | * |
389 | 389 | * Return: Zero for success or negative number for error |
390 | 390 | */ |
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) |
393 | 393 | { |
394 | 394 | u8 reg; |
395 | 395 | int dir; |
@@ -984,8 +984,7 @@ static int aw9523_probe(struct i2c_client *client) |
984 | 984 | } |
985 | 985 |
|
986 | 986 | 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)); |
989 | 988 |
|
990 | 989 | pdesc = devm_kzalloc(dev, sizeof(*pdesc), GFP_KERNEL); |
991 | 990 | if (!pdesc) |
|
0 commit comments