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

Input: ad714x - allow platform code to specify irqflags

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

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Tested-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Michael Hennerich and committed by
Dmitry Torokhov
3532cb0c e223cc7e

+5 -2
+3 -1
drivers/input/misc/ad714x.c
··· 1257 1257 } 1258 1258 1259 1259 error = request_threaded_irq(ad714x->irq, NULL, ad714x_interrupt_thread, 1260 - IRQF_TRIGGER_FALLING, "ad714x_captouch", ad714x); 1260 + plat_data->irqflags ? 1261 + plat_data->irqflags : IRQF_TRIGGER_FALLING, 1262 + "ad714x_captouch", ad714x); 1261 1263 if (error) { 1262 1264 dev_err(dev, "can't allocate irq %d\n", ad714x->irq); 1263 1265 goto err_unreg_dev;
+2 -1
include/linux/input/ad714x.h
··· 6 6 * The platform_data for the device's "struct device" holds this 7 7 * information. 8 8 * 9 - * Copyright 2009 Analog Devices Inc. 9 + * Copyright 2009-2011 Analog Devices Inc. 10 10 * 11 11 * Licensed under the GPL-2 or later. 12 12 */ ··· 58 58 struct ad714x_button_plat *button; 59 59 unsigned short stage_cfg_reg[STAGE_NUM][STAGE_CFGREG_NUM]; 60 60 unsigned short sys_cfg_reg[SYS_CFGREG_NUM]; 61 + unsigned long irqflags; 61 62 }; 62 63 63 64 #endif