Title: [8187] trunk/include/linux: Add irq_flags to:
- Revision
- 8187
- Author
- hennerich
- Date
- 2010-01-19 04:53:31 -0500 (Tue, 19 Jan 2010)
Log Message
Add irq_flags to:
struct spi_board_info
struct i2c_board_info
These flags can be optionally defined - slave drivers may use them as
flags argument for request_irq().
In case they are left un-initialized they will default to zero, and
therefore shouldn't cause problems.
This may avoid unconditional calls from platform init code to
set_irq_type() when SPI/I2C Slave drivers are build as modules.
It also matches behavior of some other frameworks like IDE and UIO.
Modified Paths
Diff
Modified: trunk/include/linux/i2c.h (8186 => 8187)
--- trunk/include/linux/i2c.h 2010-01-19 09:32:14 UTC (rev 8186)
+++ trunk/include/linux/i2c.h 2010-01-19 09:53:31 UTC (rev 8187)
@@ -178,6 +178,7 @@
* @driver: device's driver, hence pointer to access routines
* @dev: Driver model device node for the slave.
* @irq: indicates the IRQ generated by this device (if any)
+ * @irq_flags: The flags passed to request_irq()
* @detected: member of an i2c_driver.clients list or i2c-core's
* userspace_devices list
*
@@ -195,6 +196,7 @@
struct i2c_driver *driver; /* and our access routines */
struct device dev; /* the device structure */
int irq; /* irq issued by device */
+ unsigned long irq_flags; /* flags used by the irq */
struct list_head detected;
};
#define to_i2c_client(d) container_of(d, struct i2c_client, dev)
Modified: trunk/include/linux/spi/spi.h (8186 => 8187)
--- trunk/include/linux/spi/spi.h 2010-01-19 09:32:14 UTC (rev 8186)
+++ trunk/include/linux/spi/spi.h 2010-01-19 09:53:31 UTC (rev 8187)
@@ -49,6 +49,7 @@
* The spi_transfer.bits_per_word can override this for each transfer.
* @irq: Negative, or the number passed to request_irq() to receive
* interrupts from this device.
+ * @irq_flags: The flags passed to request_irq()
* @controller_state: Controller's runtime state
* @controller_data: Board-specific definitions for controller, such as
* FIFO initialization parameters; from board_info.controller_data
@@ -85,6 +86,7 @@
#define SPI_READY 0x80 /* slave pulls low to pause */
u8 bits_per_word;
int irq;
+ unsigned long irq_flags;
void *controller_state;
void *controller_data;
char modalias[SPI_NAME_SIZE];
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits