Lines Matching refs:thermostat
3 * Device driver for the i2c thermostat found on the iBook G4, Albook G4
58 MODULE_DESCRIPTION("Driver for ADT746x thermostat in iBook G4 and "
74 struct thermostat {
91 static void write_both_fan_speed(struct thermostat *th, int speed);
92 static void write_fan_speed(struct thermostat *th, int speed, int fan);
95 write_reg(struct thermostat* th, int reg, u8 data)
111 read_reg(struct thermostat* th, int reg)
128 static int read_fan_speed(struct thermostat *th, u8 addr)
142 static void write_both_fan_speed(struct thermostat *th, int speed)
149 static void write_fan_speed(struct thermostat *th, int speed, int fan)
199 static void read_sensors(struct thermostat *th)
208 static void display_stats(struct thermostat *th)
227 static void update_fans_speed (struct thermostat *th)
284 struct thermostat* th = arg;
310 static void set_limit(struct thermostat *th, int i)
323 struct thermostat *th = dev_get_drvdata(dev); \
342 struct thermostat *th = dev_get_drvdata(dev); \
352 struct thermostat *th = dev_get_drvdata(dev); \
415 static void thermostat_create_files(struct thermostat *th)
446 static void thermostat_remove_files(struct thermostat *th)
472 struct thermostat* th;
500 th = kzalloc(sizeof(struct thermostat), GFP_KERNEL);
569 struct thermostat *th = i2c_get_clientdata(client);