mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
(Kyösti)
* renamed every smbus_* access to i2c_smbus_* * everything in lm_sensors2/kernel/* compiles nicely :) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@499 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
868b407674
commit
3014204a0d
15 files changed
+76
-76
No files matched your search
@@ -77,7 +77,7 @@ static void matorb_update_client(struct i2c_client *client);
|
||||
static struct i2c_driver matorb_driver = {
|
||||
/* name */ "Matrix Orbital LCD driver",
|
||||
/* id */ I2C_DRIVERID_MATORB,
|
||||
/* flags */ DF_NOTIFY,
|
||||
/* flags */ I2C_DF_NOTIFY,
|
||||
/* attach_adapter */ &matorb_attach_adapter,
|
||||
/* detach_client */ &matorb_detach_client,
|
||||
/* command */ &matorb_command,
|
||||
@@ -150,7 +150,7 @@ int matorb_detect(struct i2c_adapter *adapter, int address, int kind)
|
||||
new_client->driver = &matorb_driver;
|
||||
|
||||
/* Now, we do the remaining detection. It is lousy. */
|
||||
cur = smbus_write_byte_data(adapter,address,0x0FE, 0x58); /* clear screen */
|
||||
cur = i2c_smbus_write_byte_data(adapter,address,0x0FE, 0x58); /* clear screen */
|
||||
|
||||
printk("matorb.o: debug detect 0x%X\n",cur);
|
||||
|
||||
@@ -266,9 +266,9 @@ int matorb_read_value(struct i2c_client *client, u8 reg)
|
||||
int matorb_write_value(struct i2c_client *client, u8 reg, u16 value)
|
||||
{
|
||||
if (reg==0) {
|
||||
return smbus_write_byte(client->adapter,client->addr,value);
|
||||
return i2c_smbus_write_byte(client->adapter,client->addr,value);
|
||||
} else {
|
||||
return smbus_write_byte_data(client->adapter,client->addr,reg,value);
|
||||
return i2c_smbus_write_byte_data(client->adapter,client->addr,reg,value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user