regmap: irq: add support for configuration of trigger type
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 22 Dec 2015 12:55:26 +0000 (18:25 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 17:47:18 +0000 (17:47 +0000)
commit7a78479fd2acd25db7ecd1744d76f6841ec8a257
tree051b11f230c965d2078c4ec51b5933cbc480d1f4
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
regmap: irq: add support for configuration of trigger type

Some of devices supports the trigger level for interrupt
like rising/falling edge specially for GPIOs. The interrupt
support of such devices may have uses the generic regmap irq
framework for implementation.

Add support to configure the trigger type device interrupt
register via regmap-irq framework. The regmap-irq framework
configures the trigger register only if the details of trigger
type registers are provided.

[Fixed use of terery operator for legibility -- broonie]

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h