hih6130            83 drivers/hwmon/hih6130.c 	struct hih6130 *hih6130 = dev_get_drvdata(dev);
hih6130            84 drivers/hwmon/hih6130.c 	struct i2c_client *client = hih6130->client;
hih6130            97 drivers/hwmon/hih6130.c 	mutex_lock(&hih6130->lock);
hih6130           110 drivers/hwmon/hih6130.c 	if (time_after(jiffies, hih6130->last_update + HZ) || !hih6130->valid) {
hih6130           120 drivers/hwmon/hih6130.c 		ret = i2c_master_send(client, tmp, hih6130->write_length);
hih6130           138 drivers/hwmon/hih6130.c 		hih6130->humidity = hih6130_rh_ticks_to_per_cent_mille(t);
hih6130           141 drivers/hwmon/hih6130.c 		hih6130->temperature = hih6130_temp_ticks_to_millicelsius(t);
hih6130           143 drivers/hwmon/hih6130.c 		hih6130->last_update = jiffies;
hih6130           144 drivers/hwmon/hih6130.c 		hih6130->valid = true;
hih6130           147 drivers/hwmon/hih6130.c 	mutex_unlock(&hih6130->lock);
hih6130           165 drivers/hwmon/hih6130.c 	struct hih6130 *hih6130 = dev_get_drvdata(dev);
hih6130           171 drivers/hwmon/hih6130.c 	return sprintf(buf, "%d\n", hih6130->temperature);
hih6130           186 drivers/hwmon/hih6130.c 	struct hih6130 *hih6130 = dev_get_drvdata(dev);
hih6130           192 drivers/hwmon/hih6130.c 	return sprintf(buf, "%d\n", hih6130->humidity);
hih6130           205 drivers/hwmon/hih6130.c ATTRIBUTE_GROUPS(hih6130);
hih6130           211 drivers/hwmon/hih6130.c 	struct hih6130 *hih6130;
hih6130           219 drivers/hwmon/hih6130.c 	hih6130 = devm_kzalloc(dev, sizeof(*hih6130), GFP_KERNEL);
hih6130           220 drivers/hwmon/hih6130.c 	if (!hih6130)
hih6130           223 drivers/hwmon/hih6130.c 	hih6130->client = client;
hih6130           224 drivers/hwmon/hih6130.c 	mutex_init(&hih6130->lock);
hih6130           227 drivers/hwmon/hih6130.c 		hih6130->write_length = 1;
hih6130           230 drivers/hwmon/hih6130.c 							   hih6130,