diff options
author | Jean Delvare <khali@linux-fr.org> | 2011-02-03 03:23:10 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-03-22 03:17:48 -0400 |
commit | 49bb0943329929e73c9a22c97d53c6c8967eb243 (patch) | |
tree | fb364bcc2a603c9bd27c4db19f571d3b03e9ca27 /drivers/video/aty | |
parent | beee1f20a185c7e79fd33bb83e04fe44ecd75af3 (diff) |
radeonfb: Let hwmon driver probe the "monid" I2C bus
Some Radeon cards have an I2C-based thermal sensor chip connected to
the "monid" I2C bus. Set the I2C probing class of this bus properly so
that hwmon drivers can detect devices on it and bind to them.
This closes kernel.org bug #26172.
We exclude PPC for the time being, as Benjamin doesn't want us to
mess up with them without explicit testing, and there is no evidence
that this change is needed for them either.
Reported-by: Alexander Goomenyuk <emerg.reanimator@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video/aty')
-rw-r--r-- | drivers/video/aty/radeon_i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/aty/radeon_i2c.c b/drivers/video/aty/radeon_i2c.c index 78d1f4cd1fe0..ab1d0fd76316 100644 --- a/drivers/video/aty/radeon_i2c.c +++ b/drivers/video/aty/radeon_i2c.c | |||
@@ -100,6 +100,9 @@ void radeon_create_i2c_busses(struct radeonfb_info *rinfo) | |||
100 | { | 100 | { |
101 | rinfo->i2c[0].rinfo = rinfo; | 101 | rinfo->i2c[0].rinfo = rinfo; |
102 | rinfo->i2c[0].ddc_reg = GPIO_MONID; | 102 | rinfo->i2c[0].ddc_reg = GPIO_MONID; |
103 | #ifndef CONFIG_PPC | ||
104 | rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON; | ||
105 | #endif | ||
103 | radeon_setup_i2c_bus(&rinfo->i2c[0], "monid"); | 106 | radeon_setup_i2c_bus(&rinfo->i2c[0], "monid"); |
104 | 107 | ||
105 | rinfo->i2c[1].rinfo = rinfo; | 108 | rinfo->i2c[1].rinfo = rinfo; |