(Kyösti)

* Fixed adapter drivers to compile with the new i2c structs.
   They might, or they might not work..


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@497 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Kyosti Malkki committed 1999-07-20 21:38:11 +00:00
1 parent 24e547b88e
commit 7ac5a6005f
6 files changed
+188 -90

No files matched your search

+14 -10
View File
@@ -103,34 +103,38 @@ static int bit_hydra_getsda(void *data)
return (pdregr() & HYDRA_SDAT) != 0;
}
static int bit_hydra_reg(struct i2c_client *client)
static void bit_hydra_inc(struct i2c_adapter *adap)
{
MOD_INC_USE_COUNT;
return 0;
}
static int bit_hydra_unreg(struct i2c_client *client)
static void bit_hydra_dec(struct i2c_adapter *adap)
{
MOD_DEC_USE_COUNT;
return 0;
}
/* ------------------------------------------------------------------------ */
struct bit_adapter bit_hydra_ops = {
"Hydra i2c",
HW_B_HYDRA,
struct i2c_algo_bit_data bit_hydra_data = {
NULL,
bit_hydra_setsda,
bit_hydra_setscl,
bit_hydra_getsda,
bit_hydra_getscl,
bit_hydra_reg,
bit_hydra_unreg,
5, 5, 100, /*waits, timeout */
};
struct i2c_adapter bit_hydra_ops = {
"Hydra i2c",
I2C_HW_B_HYDRA,
NULL,
&bit_hydra_data,
bit_hydra_inc,
bit_hydra_dec,
NULL,
NULL,
};
static int find_hydra(void)
{