Skip to content

Commit 68a12c1

Browse files
committed
gpio: crystalcove: Join function declarations and long lines
There is no more hard limit of 80 characters for long lines, so join a few of them for better readability. Signed-off-by: Andy Shevchenko <[email protected]>
1 parent b34d2ad commit 68a12c1

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

drivers/gpio/gpio-crystalcove.c

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
111111
return reg + gpio % 8;
112112
}
113113

114-
static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg,
115-
int gpio)
114+
static void crystalcove_update_irq_mask(struct crystalcove_gpio *cg, int gpio)
116115
{
117116
u8 mirqs0 = gpio < 8 ? MGPIO0IRQS0 : MGPIO1IRQS0;
118117
int mask = BIT(gpio % 8);
@@ -141,8 +140,7 @@ static int crystalcove_gpio_dir_in(struct gpio_chip *chip, unsigned int gpio)
141140
return regmap_write(cg->regmap, reg, CTLO_INPUT_SET);
142141
}
143142

144-
static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio,
145-
int value)
143+
static int crystalcove_gpio_dir_out(struct gpio_chip *chip, unsigned int gpio, int value)
146144
{
147145
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
148146
int reg = to_reg(gpio, CTRL_OUT);
@@ -169,8 +167,7 @@ static int crystalcove_gpio_get(struct gpio_chip *chip, unsigned int gpio)
169167
return val & 0x1;
170168
}
171169

172-
static void crystalcove_gpio_set(struct gpio_chip *chip,
173-
unsigned int gpio, int value)
170+
static void crystalcove_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value)
174171
{
175172
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
176173
int reg = to_reg(gpio, CTRL_OUT);
@@ -186,8 +183,7 @@ static void crystalcove_gpio_set(struct gpio_chip *chip,
186183

187184
static int crystalcove_irq_type(struct irq_data *data, unsigned int type)
188185
{
189-
struct crystalcove_gpio *cg =
190-
gpiochip_get_data(irq_data_get_irq_chip_data(data));
186+
struct crystalcove_gpio *cg = gpiochip_get_data(irq_data_get_irq_chip_data(data));
191187
irq_hw_number_t hwirq = irqd_to_hwirq(data);
192188

193189
if (hwirq >= CRYSTALCOVE_GPIO_NUM)
@@ -217,16 +213,14 @@ static int crystalcove_irq_type(struct irq_data *data, unsigned int type)
217213

218214
static void crystalcove_bus_lock(struct irq_data *data)
219215
{
220-
struct crystalcove_gpio *cg =
221-
gpiochip_get_data(irq_data_get_irq_chip_data(data));
216+
struct crystalcove_gpio *cg = gpiochip_get_data(irq_data_get_irq_chip_data(data));
222217

223218
mutex_lock(&cg->buslock);
224219
}
225220

226221
static void crystalcove_bus_sync_unlock(struct irq_data *data)
227222
{
228-
struct crystalcove_gpio *cg =
229-
gpiochip_get_data(irq_data_get_irq_chip_data(data));
223+
struct crystalcove_gpio *cg = gpiochip_get_data(irq_data_get_irq_chip_data(data));
230224
irq_hw_number_t hwirq = irqd_to_hwirq(data);
231225

232226
if (cg->update & UPDATE_IRQ_TYPE)
@@ -304,8 +298,7 @@ static irqreturn_t crystalcove_gpio_irq_handler(int irq, void *data)
304298
return IRQ_HANDLED;
305299
}
306300

307-
static void crystalcove_gpio_dbg_show(struct seq_file *s,
308-
struct gpio_chip *chip)
301+
static void crystalcove_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
309302
{
310303
struct crystalcove_gpio *cg = gpiochip_get_data(chip);
311304
int gpio, offset;

0 commit comments

Comments
 (0)