aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi/at86rf230.h
diff options
context:
space:
mode:
authorSascha Herrmann <sascha@ps.nvbi.de>2013-04-14 18:33:28 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-16 16:34:07 -0400
commit43b5abe0640100a9e9424c91298c7993d443ffb7 (patch)
treebe50d3b735590b8c81413266de199d3338a8bf7a /include/linux/spi/at86rf230.h
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/at86rf230.h')
-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 b2b1afbb3202..aa327a8105ad 100644
--- a/include/linux/spi/at86rf230.h
+++ b/include/linux/spi/at86rf230.h
@@ -26,6 +26,20 @@ struct at86rf230_platform_data {
26 int rstn; 26 int rstn;
27 int slp_tr; 27 int slp_tr;
28 int dig2; 28 int dig2;
29
30 /* Setting the irq_type will configure the driver to request
31 * the platform irq trigger type according to the given value
32 * and configure the interrupt polarity of the device to the
33 * corresponding polarity.
34 *
35 * Allowed values are: IRQF_TRIGGER_RISING, IRQF_TRIGGER_FALLING,
36 * IRQF_TRIGGER_HIGH and IRQF_TRIGGER_LOW
37 *
38 * Setting it to 0, the driver does not touch the trigger type
39 * configuration of the interrupt and sets the interrupt polarity
40 * of the device to high active (the default value).
41 */
42 int irq_type;
29}; 43};
30 44
31#endif 45#endif