lkml.org 
[lkml]   [2008]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectRe: scx200_i2c driver fails to detect any i2c devices in 2.6.26 (new patch)
From
The scx200_i2c driver is missing the .class parameter, which means no
i2c drivers are willing to probe for devices on the bus and attach to
them.

This patch adds the missing .class parameter.

Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca>

--- scx200_i2c.c 2008-05-20 09:39:24.000000000 -0400
+++ scx200_i2c.c.new 2008-10-23 13:51:57.000000000 -0400
@@ -81,6 +81,7 @@

static struct i2c_adapter scx200_i2c_ops = {
.owner = THIS_MODULE,
+ .class = I2C_CLASS_HWMON | I2C_CLASS_SPD,
.id = I2C_HW_B_SCX200,
.algo_data = &scx200_i2c_data,
.name = "NatSemi SCx200 I2C",


--
Len Sorensen


\
 
 \ /
  Last update: 2008-10-23 19:59    [W:0.038 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site