Lines Matching refs:cl
120 write_reg( struct i2c_client *cl, int reg, int data, int len ) in write_reg() argument
132 if( i2c_master_send(cl, tmp, len) != len ) in write_reg()
138 read_reg( struct i2c_client *cl, int reg, int len ) in read_reg() argument
145 if( i2c_master_send(cl, buf, 1) != 1 ) in read_reg()
147 if( i2c_master_recv(cl, buf, len) != len ) in read_reg()
356 attach_fan( struct i2c_client *cl ) in attach_fan() argument
362 if( read_reg(cl, 0x3d, 1) != 0x30 || read_reg(cl, 0x3e, 1) != 0x41 ) in attach_fan()
364 printk("ADM1030 fan controller [@%02x]\n", cl->addr ); in attach_fan()
366 x.fan = cl; in attach_fan()
372 attach_thermostat( struct i2c_client *cl ) in attach_thermostat() argument
379 if( (temp=read_reg(cl, 0, 2)) < 0 ) in attach_thermostat()
385 hyst_temp = read_reg(cl, 2, 2); in attach_thermostat()
386 os_temp = read_reg(cl, 3, 2); in attach_thermostat()
390 printk("DS1775 digital thermometer [@%02x]\n", cl->addr ); in attach_thermostat()
399 x.thermostat = cl; in attach_thermostat()
414 do_probe(struct i2c_client *cl, const struct i2c_device_id *id) in do_probe() argument
416 struct i2c_adapter *adapter = cl->adapter; in do_probe()
424 return attach_fan( cl ); in do_probe()
426 return attach_thermostat(cl); in do_probe()