mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
isa module added, some bugfixes
'isa.o' is roughly what was called 'sensor.o' in doc/design. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@12 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ed7e4c3001
commit
4d29df9f32
13 files changed
+900
-107
No files matched your search
+1
-43
@@ -20,6 +20,7 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#include "i2c.h"
|
||||
#ifdef SPINLOCK
|
||||
#include <asm/spinlock.h>
|
||||
#else
|
||||
@@ -156,49 +157,6 @@ int smbus_client_unregister (struct smbus_client *client)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Next: define SMBus variants of registering. Very boring. To make it possible
|
||||
to change these definitions in the future without recompiling all modules,
|
||||
we do not define them as inline. */
|
||||
int smbus_add_algorithm(struct smbus_algorithm *algorithm)
|
||||
{
|
||||
return i2c_add_algorithm( (struct i2c_algorithm *) algorithm);
|
||||
}
|
||||
|
||||
int smbus_del_algorithm(struct smbus_algorithm *algorithm)
|
||||
{
|
||||
return i2c_del_algorithm( (struct i2c_algorithm *) algorithm);
|
||||
}
|
||||
|
||||
int smbus_add_adapter(struct smbus_adapter *adapter)
|
||||
{
|
||||
return i2c_add_adapter( (struct i2c_adapter *) adapter);
|
||||
}
|
||||
|
||||
int smbus_del_adapter(struct smbus_adapter *adapter)
|
||||
{
|
||||
return i2c_del_adapter( (struct i2c_adapter *) adapter);
|
||||
}
|
||||
|
||||
int smbus_add_driver(struct smbus_driver *driver)
|
||||
{
|
||||
return i2c_add_driver( (struct i2c_driver *) driver);
|
||||
}
|
||||
|
||||
int smbus_del_driver(struct smbus_driver *driver)
|
||||
{
|
||||
return i2c_del_driver( (struct i2c_driver *) driver);
|
||||
}
|
||||
|
||||
int smbus_attach_client(struct smbus_client *client)
|
||||
{
|
||||
return i2c_attach_client( (struct i2c_client *) client);
|
||||
}
|
||||
|
||||
int smbus_detach_client(struct smbus_client *client)
|
||||
{
|
||||
return i2c_detach_client( (struct i2c_client *) client);
|
||||
}
|
||||
|
||||
int smbus_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
Reference in new issue
Block a user