dev_info(&client->dev, "VLM conversion set to" 
dev_info(&client->dev, "VLM conversion set to " 
static void pc87360_init_client(struct i2c_client *client, int use_thermistors){	struct pc87360_data *data = i2c_get_clientdata(client);	int i, nr;	const u8 init_in[14] = { 2, 2, 2, 2, 2, 2, 2, 1, 1, 3, 1, 2, 2, 2 };	const u8 init_temp[3] = { 2, 2, 1 };	u8 reg;	if (init >= 2 && data->innr) {		reg = pc87360_read_value(data, LD_IN, NO_BANK,					 PC87365_REG_IN_CONVRATE);		dev_info(&client->dev, "VLM conversion set to"			 "1s period, 160us delay\n");		pc87360_write_value(data, LD_IN, NO_BANK,				    PC87365_REG_IN_CONVRATE,				    (reg & 0xC0) | 0x11);	}	nr = data->innr < 11 ? data->innr : 11;	for (i=0; i<nr; i++) {		if (init >= init_in[i]) {			/* Forcibly enable voltage channel */			reg = pc87360_read_value(data, LD_IN, i,						 PC87365_REG_IN_STATUS);			if (!(reg & 0x01)) {				dev_dbg(&client->dev, "Forcibly "					"enabling in%d\n", i);				pc87360_write_value(data, LD_IN, i,						    PC87365_REG_IN_STATUS,						    (reg & 0x68) | 0x87);			}		}	}	/* We can't blindly trust the Super-I/O space configuration bit,	   most BIOS won't set it properly */	for (i=11; i<data->innr; i++) {		reg = pc87360_read_value(data, LD_IN, i,					 PC87365_REG_TEMP_STATUS);		use_thermistors = use_thermistors || (reg & 0x01);	}	i = use_thermistors ? 2 : 0;	for (; i<data->tempnr; i++) {		if (init >= init_temp[i]) {			/* Forcibly enable temperature channel */			reg = pc87360_read_value(data, LD_TEMP, i,						 PC87365_REG_TEMP_STATUS);			if (!(reg & 0x01)) {				dev_dbg(&client->dev, "Forcibly "					"enabling temp%d\n", i+1);				pc87360_write_value(data, LD_TEMP, i,						    PC87365_REG_TEMP_STATUS,						    0xCF);			}		}	}	if (use_thermistors) {		for (i=11; i<data->innr; i++) {			if (init >= init_in[i]) {				/* The pin may already be used by thermal				   diodes */				reg = pc87360_read_value(data, LD_TEMP,				      (i-11)/2, PC87365_REG_TEMP_STATUS);				if (reg & 0x01) {					dev_dbg(&client->dev, "Skipping "						"temp%d, pin already in use "						"by temp%d\n", i-7, (i-11)/2);					continue;				}				/* Forcibly enable thermistor channel */				reg = pc87360_read_value(data, LD_IN, i,							 PC87365_REG_IN_STATUS);				if (!(reg & 0x01)) {					dev_dbg(&client->dev, "Forcibly "						"enabling temp%d\n", i-7);					pc87360_write_value(data, LD_IN, i,						PC87365_REG_TEMP_STATUS,						(reg & 0x60) | 0x8F);				}			}		}	}	if (data->innr) {		reg = pc87360_read_value(data, LD_IN, NO_BANK,					 PC87365_REG_IN_CONFIG);		if (reg & 0x01) {			dev_dbg(&client->dev, "Forcibly "				"enabling monitoring (VLM)\n");			pc87360_write_value(data, LD_IN, NO_BANK,					    PC87365_REG_IN_CONFIG,					    reg & 0xFE);		}	}	if (data->tempnr) {		reg = pc87360_read_value(data, LD_TEMP, NO_BANK,					 PC87365_REG_TEMP_CONFIG);		if (reg & 0x01) {			dev_dbg(&client->dev, "Forcibly enabling "				"monitoring (TMS)\n");			pc87360_write_value(data, LD_TEMP, NO_BANK,					    PC87365_REG_TEMP_CONFIG,					    reg & 0xFE);		}		if (init >= 2) {			/* Chip config as documented by National Semi. */			pc87360_write_value(data, LD_TEMP, 0xF, 0xA, 0x08);			/* We voluntarily omit the bank here, in case the			   sequence itself matters. It shouldn't be a problem,			   since nobody else is supposed to access the			   device at that point. */			pc87360_write_value(data, LD_TEMP, NO_BANK, 0xB, 0x04);			pc87360_write_value(data, LD_TEMP, NO_BANK, 0xC, 0x35);			pc87360_write_value(data, LD_TEMP, NO_BANK, 0xD, 0x05);			pc87360_write_value(data, LD_TEMP, NO_BANK, 0xE, 0x05);		}	}}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/368609c5a8bd75b77721e69726ddfd3c6a30f7d4/pc87360.c/buggy/drivers/hwmon/pc87360.c