Skip to content

Commit 177b70c

Browse files
William Breathitt GrayBartosz Golaszewski
authored andcommitted
gpio: 104-dio-48e: Utilize no_status regmap-irq flag
The 104-DIO-48E lacks an IRQ status register. Rather than use the Clear Interrupt register as the status register, set the no_status flag to true and thus avoid such a hack. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: William Breathitt Gray <william.gray@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent ae5ae35 commit 177b70c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/gpio/gpio-104-dio-48e.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,9 @@ static int dio48e_probe(struct device *dev, unsigned int id)
194194
return -ENOMEM;
195195

196196
chip->name = name;
197-
/* No IRQ status register so use CLEAR_INTERRUPT register instead */
198-
chip->status_base = DIO48E_CLEAR_INTERRUPT;
199197
chip->mask_base = DIO48E_ENABLE_INTERRUPT;
200198
chip->ack_base = DIO48E_CLEAR_INTERRUPT;
201-
/* CLEAR_INTERRUPT doubles as status register so we need it cleared */
202-
chip->clear_ack = true;
203-
chip->status_invert = true;
199+
chip->no_status = true;
204200
chip->num_regs = 1;
205201
chip->irqs = dio48e_regmap_irqs;
206202
chip->num_irqs = ARRAY_SIZE(dio48e_regmap_irqs);

0 commit comments

Comments
 (0)