aboutsummaryrefslogtreecommitdiff
path: root/include/linux/spi
diff options
context:
space:
mode:
authorSascha Herrmann <sascha@ps.nvbi.de>2013-04-14 22:33:28 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-16 16:34:07 -0400
commit43b5abe0640100a9e9424c91298c7993d443ffb7 (patch)
treebe50d3b735590b8c81413266de199d3338a8bf7a /include/linux/spi
parent8ac2b3c0e270f9792edc15fb66808143eb48a53f (diff)
at86rf230: add irq type configuration option
Add option to at86rf230 platform data to configure the type of the interrupt used by the driver. The irq polarity of the device will be configured accordingly. Signed-off-by: Sascha Herrmann <sascha@ps.nvbi.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/at86rf230.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/spi/at86rf230.h b/include/linux/spi/at86rf230.h
index b2b1afbb320..aa327a8105a 100644
--- a/include/linux/spi/at86rf230.h
+++ b/include/linux/spi/at86rf230.h
@@ -26,6 +26,20 @@ struct at86rf230_platform_data {
int rstn;
int slp_tr;
int dig2;
+
+ /* Setting the irq_type will configure the driver to request
+ * the platform irq trigger type according to the given value
+ * and configure the interrupt polarity of the device to the
+ * corresponding polarity.
+ *
+ * Allowed values are: IRQF_TRIGGER_RISING, IRQF_TRIGGER_FALLING,
+ * IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW
+ *
+ * Setting it to 0, the driver does not touch the trigger type
+ * configuration of the interrupt and sets the interrupt polarity
+ * of the device to high active (the default value).
+ */
+ int irq_type;
};
#endif