i2c: New-style devices can support driver model wakeup flags
We need to be able to flag I2C devices, such as RTCs, which can issue wake events (usually through IRQ lines). This adds an i2c_board_info.flags bit, and uses it to initialize the i2c device node. (And shrinks a few lines that were overly long.) Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>
这个提交包含在:
@@ -226,7 +226,9 @@ i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info)
|
||||
client->adapter = adap;
|
||||
|
||||
client->dev.platform_data = info->platform_data;
|
||||
client->flags = info->flags;
|
||||
device_init_wakeup(&client->dev, info->flags & I2C_CLIENT_WAKE);
|
||||
|
||||
client->flags = info->flags & ~I2C_CLIENT_WAKE;
|
||||
client->addr = info->addr;
|
||||
client->irq = info->irq;
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户