Commit f8fb75f4 authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman

[PATCH] I2C: keywest class

This is needed for iBook2 owners to be able to use their ADM1030
hardware monitoring chip. Successfully tested by one user.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent f75bdb62
...@@ -618,6 +618,8 @@ create_iface(struct device_node *np, struct device *dev) ...@@ -618,6 +618,8 @@ create_iface(struct device_node *np, struct device *dev)
chan->iface = iface; chan->iface = iface;
chan->chan_no = i; chan->chan_no = i;
chan->adapter.id = I2C_ALGO_SMBUS; chan->adapter.id = I2C_ALGO_SMBUS;
if (i==1)
chan->adapter.class = I2C_CLASS_HWMON;
chan->adapter.algo = &keywest_algorithm; chan->adapter.algo = &keywest_algorithm;
chan->adapter.algo_data = NULL; chan->adapter.algo_data = NULL;
chan->adapter.client_register = NULL; chan->adapter.client_register = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment