i2c: add a protocol parameter to the alert callback
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 9 Jun 2016 14:53:47 +0000 (16:53 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 17 Jun 2016 10:41:25 +0000 (12:41 +0200)
commitb4f210541fc319bd643ad9a4fdbfe2ce31be6cfc
tree2357245596d833d1de83be817a08bbd2ba410966
parent33c77abcf4aa5e9679f702a2f979d44a470f6e6e
i2c: add a protocol parameter to the alert callback

.alert() is meant to be generic, but there is currently no way
for the device driver to know which protocol generated the alert.
Add a parameter in .alert() to help the device driver to understand
what is given in data.

This patch is required to have the support of SMBus Host Notify protocol
through .alert().

Tested-by: Andrew Duggan <aduggan@synaptics.com>
For hwmon:
Acked-by: Guenter Roeck <linux@roeck-us.net>
For IPMI:
Acked-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/char/ipmi/ipmi_ssif.c
drivers/hwmon/lm90.c
drivers/i2c/i2c-smbus.c
include/linux/i2c.h