Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: adxl34x - do not hardcode interrupt trigger type

Instead of hardcoding IRQ trigger type to IRQF_TRIGGER_HIGH, let's
respect the settings specified in the firmware description.

Fixes: e27c729219ad ("Input: add driver for ADXL345/346 Digital Accelerometers")
Signed-off-by: Marek Vasut <marex@denx.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Link: https://lore.kernel.org/r/20230509203555.549158-1-marex@denx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Marek Vasut and committed by
Dmitry Torokhov
e96220bc bcf78498

+1 -2
+1 -2
drivers/input/misc/adxl34x.c
··· 817 817 AC_WRITE(ac, POWER_CTL, 0); 818 818 819 819 err = request_threaded_irq(ac->irq, NULL, adxl34x_irq, 820 - IRQF_TRIGGER_HIGH | IRQF_ONESHOT, 821 - dev_name(dev), ac); 820 + IRQF_ONESHOT, dev_name(dev), ac); 822 821 if (err) { 823 822 dev_err(dev, "irq %d busy?\n", ac->irq); 824 823 goto err_free_mem;