Lines Matching refs:thermostat
3 * Device driver for the i2c thermostat found on the iBook G4, Albook G4
59 MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "
75 struct thermostat {
92 static void write_both_fan_speed(struct thermostat *th, int speed);
93 static void write_fan_speed(struct thermostat *th, int speed, int fan);
96 write_reg(struct thermostat* th, int reg, u8 data)
112 read_reg(struct thermostat* th, int reg)
129 static int read_fan_speed(struct thermostat *th, u8 addr)
143 static void write_both_fan_speed(struct thermostat *th, int speed)
150 static void write_fan_speed(struct thermostat *th, int speed, int fan)
200 static void read_sensors(struct thermostat *th)
209 static void display_stats(struct thermostat *th)
228 static void update_fans_speed (struct thermostat *th)
285 struct thermostat* th = arg;
311 static void set_limit(struct thermostat *th, int i)
324 struct thermostat *th = dev_get_drvdata(dev); \
343 struct thermostat *th = dev_get_drvdata(dev); \
353 struct thermostat *th = dev_get_drvdata(dev); \
416 static void thermostat_create_files(struct thermostat *th)
447 static void thermostat_remove_files(struct thermostat *th)
473 struct thermostat* th;
501 th = kzalloc(sizeof(struct thermostat), GFP_KERNEL);
570 struct thermostat *th = i2c_get_clientdata(client);