mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +00:00
Remove owner from i2c_adapter, restore inc_use and dec_use
instead. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2772 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f7d00ae81d
commit
a223ec0fd5
20 files changed
+321
-31
No files matched your search
@@ -294,6 +294,20 @@ static s32 amd756_access(struct i2c_adapter * adap, u16 addr,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void amd756_inc(struct i2c_adapter *adapter)
|
||||
{
|
||||
#ifdef MODULE
|
||||
MOD_INC_USE_COUNT;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void amd756_dec(struct i2c_adapter *adapter)
|
||||
{
|
||||
#ifdef MODULE
|
||||
MOD_DEC_USE_COUNT;
|
||||
#endif
|
||||
}
|
||||
|
||||
static u32 amd756_func(struct i2c_adapter *adapter)
|
||||
{
|
||||
return I2C_FUNC_SMBUS_QUICK | I2C_FUNC_SMBUS_BYTE |
|
||||
@@ -309,10 +323,11 @@ static struct i2c_algorithm smbus_algorithm = {
|
||||
};
|
||||
|
||||
struct i2c_adapter amd756_smbus = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "unset",
|
||||
.id = I2C_ALGO_SMBUS | I2C_HW_SMBUS_AMD756,
|
||||
.algo = &smbus_algorithm,
|
||||
.inc_use = amd756_inc,
|
||||
.dec_use = amd756_dec,
|
||||
};
|
||||
|
||||
enum chiptype { AMD756, AMD766, AMD768, NFORCE, AMD8111 };
|
||||
|
||||
Reference in new issue
Block a user