tmp102 75 drivers/hwmon/tmp102.c struct tmp102 *tmp102 = dev_get_drvdata(dev); tmp102 82 drivers/hwmon/tmp102.c if (time_before(jiffies, tmp102->ready_time)) { tmp102 98 drivers/hwmon/tmp102.c err = regmap_read(tmp102->regmap, reg, ®val); tmp102 109 drivers/hwmon/tmp102.c struct tmp102 *tmp102 = dev_get_drvdata(dev); tmp102 124 drivers/hwmon/tmp102.c return regmap_write(tmp102->regmap, reg, tmp102_mC_to_reg(temp)); tmp102 165 drivers/hwmon/tmp102.c struct tmp102 *tmp102 = data; tmp102 167 drivers/hwmon/tmp102.c regmap_write(tmp102->regmap, TMP102_CONF_REG, tmp102->config_orig); tmp102 197 drivers/hwmon/tmp102.c struct tmp102 *tmp102; tmp102 208 drivers/hwmon/tmp102.c tmp102 = devm_kzalloc(dev, sizeof(*tmp102), GFP_KERNEL); tmp102 209 drivers/hwmon/tmp102.c if (!tmp102) tmp102 212 drivers/hwmon/tmp102.c i2c_set_clientdata(client, tmp102); tmp102 214 drivers/hwmon/tmp102.c tmp102->regmap = devm_regmap_init_i2c(client, &tmp102_regmap_config); tmp102 215 drivers/hwmon/tmp102.c if (IS_ERR(tmp102->regmap)) tmp102 216 drivers/hwmon/tmp102.c return PTR_ERR(tmp102->regmap); tmp102 218 drivers/hwmon/tmp102.c err = regmap_read(tmp102->regmap, TMP102_CONF_REG, ®val); tmp102 230 drivers/hwmon/tmp102.c tmp102->config_orig = regval; tmp102 232 drivers/hwmon/tmp102.c err = devm_add_action_or_reset(dev, tmp102_restore_config, tmp102); tmp102 239 drivers/hwmon/tmp102.c err = regmap_write(tmp102->regmap, TMP102_CONF_REG, regval); tmp102 249 drivers/hwmon/tmp102.c tmp102->ready_time = jiffies + msecs_to_jiffies(CONVERSION_TIME_MS); tmp102 252 drivers/hwmon/tmp102.c tmp102, tmp102 268 drivers/hwmon/tmp102.c struct tmp102 *tmp102 = i2c_get_clientdata(client); tmp102 270 drivers/hwmon/tmp102.c return regmap_update_bits(tmp102->regmap, TMP102_CONF_REG, tmp102 277 drivers/hwmon/tmp102.c struct tmp102 *tmp102 = i2c_get_clientdata(client); tmp102 280 drivers/hwmon/tmp102.c err = regmap_update_bits(tmp102->regmap, TMP102_CONF_REG, tmp102 283 drivers/hwmon/tmp102.c tmp102->ready_time = jiffies + msecs_to_jiffies(CONVERSION_TIME_MS);