Lines Matching refs:config
245 int config; in tmp102_remove() local
247 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_remove()
248 if (config >= 0) in tmp102_remove()
250 config | TMP102_CONF_SD); in tmp102_remove()
260 int config; in tmp102_suspend() local
262 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_suspend()
263 if (config < 0) in tmp102_suspend()
264 return config; in tmp102_suspend()
266 config |= TMP102_CONF_SD; in tmp102_suspend()
267 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); in tmp102_suspend()
273 int config; in tmp102_resume() local
275 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_resume()
276 if (config < 0) in tmp102_resume()
277 return config; in tmp102_resume()
279 config &= ~TMP102_CONF_SD; in tmp102_resume()
280 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); in tmp102_resume()