thermostat
read_reg(struct thermostat* th, int reg)
static int read_fan_speed(struct thermostat *th, u8 addr)
static void write_both_fan_speed(struct thermostat *th, int speed)
static void write_fan_speed(struct thermostat *th, int speed, int fan)
static void read_sensors(struct thermostat *th)
static void display_stats(struct thermostat *th)
static void update_fans_speed (struct thermostat *th)
struct thermostat* th = arg;
static void set_limit(struct thermostat *th, int i)
struct thermostat *th = dev_get_drvdata(dev); \
struct thermostat *th = dev_get_drvdata(dev); \
struct thermostat *th = dev_get_drvdata(dev); \
static void thermostat_create_files(struct thermostat *th)
static void thermostat_remove_files(struct thermostat *th)
struct thermostat* th;
th = kzalloc_obj(struct thermostat);
struct thermostat *th = i2c_get_clientdata(client);
static void write_both_fan_speed(struct thermostat *th, int speed);
static void write_fan_speed(struct thermostat *th, int speed, int fan);
write_reg(struct thermostat* th, int reg, u8 data)
temp = read_reg( x.thermostat, 0, 2 );
if( (val=read_reg(x.thermostat, 1, 1)) >= 0 ) {
if( write_reg( x.thermostat, 1, val, 1 ) )
write_reg( x.thermostat, 2, x.overheat_hyst, 2 );
write_reg( x.thermostat, 3, x.overheat_temp, 2 );
if (client == x.thermostat)
x.thermostat = NULL;
if( x.thermostat )
x.thermostat = cl;
if (!x.running && x.thermostat && x.fan) {
struct i2c_client *thermostat;