mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
Drop unused client id.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2867 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
dc6501f36b
commit
1756f8d8dd
45 files changed
-185
No files matched your search
@@ -86,8 +86,6 @@ static ctl_table pca9540_dir_table_template[] = {
|
||||
{0}
|
||||
};
|
||||
|
||||
static int pca9540_id = 0;
|
||||
|
||||
static int pca9540_attach_adapter(struct i2c_adapter *adapter)
|
||||
{
|
||||
return i2c_detect(adapter, &addr_data, pca9540_detect);
|
||||
@@ -133,7 +131,6 @@ int pca9540_detect(struct i2c_adapter *adapter, int address,
|
||||
|
||||
/* Fill in the remaining client fields and put it into the global list */
|
||||
strcpy(new_client->name, "PCA9540 chip");
|
||||
new_client->id = pca9540_id++;
|
||||
init_MUTEX(&data->update_lock);
|
||||
|
||||
/* Tell the I2C layer a new client has arrived */
|
||||
|
||||
Reference in new issue
Block a user