Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3532cb0c authored by Michael Hennerich's avatar Michael Hennerich Committed by Dmitry Torokhov
Browse files

Input: ad714x - allow platform code to specify irqflags



Add option to specify irqflags in platfrom data.
Also update copyright notice.

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Tested-by: default avatarJean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent e223cc7e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1257,7 +1257,9 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
	}

	error = request_threaded_irq(ad714x->irq, NULL, ad714x_interrupt_thread,
			IRQF_TRIGGER_FALLING, "ad714x_captouch", ad714x);
				plat_data->irqflags ?
					plat_data->irqflags : IRQF_TRIGGER_FALLING,
				"ad714x_captouch", ad714x);
	if (error) {
		dev_err(dev, "can't allocate irq %d\n", ad714x->irq);
		goto err_unreg_dev;
+2 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
 * The platform_data for the device's "struct device" holds this
 * information.
 *
 * Copyright 2009 Analog Devices Inc.
 * Copyright 2009-2011 Analog Devices Inc.
 *
 * Licensed under the GPL-2 or later.
 */
@@ -58,6 +58,7 @@ struct ad714x_platform_data {
	struct ad714x_button_plat *button;
	unsigned short stage_cfg_reg[STAGE_NUM][STAGE_CFGREG_NUM];
	unsigned short sys_cfg_reg[SYS_CFGREG_NUM];
	unsigned long irqflags;
};

#endif