tmp006.c (14e77332e74603efab8347c89d3cda447c3b97c9) tmp006.c (89824f4cb65e7a7174cb24e4c0835e4c37f74a21)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * tmp006.c - Support for TI TMP006 IR thermopile sensor
4 *
5 * Copyright (c) 2013 Peter Meerwald <pmeerw@pmeerw.net>
6 *
7 * Driver for the Texas Instruments I2C 16-bit IR thermopile sensor
8 *

--- 198 unchanged lines hidden (view full) ---

207 data->config);
208}
209
210static void tmp006_powerdown_cleanup(void *dev)
211{
212 tmp006_power(dev, false);
213}
214
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * tmp006.c - Support for TI TMP006 IR thermopile sensor
4 *
5 * Copyright (c) 2013 Peter Meerwald <pmeerw@pmeerw.net>
6 *
7 * Driver for the Texas Instruments I2C 16-bit IR thermopile sensor
8 *

--- 198 unchanged lines hidden (view full) ---

207 data->config);
208}
209
210static void tmp006_powerdown_cleanup(void *dev)
211{
212 tmp006_power(dev, false);
213}
214
215static int tmp006_probe(struct i2c_client *client,
216 const struct i2c_device_id *id)
215static int tmp006_probe(struct i2c_client *client)
217{
218 struct iio_dev *indio_dev;
219 struct tmp006_data *data;
220 int ret;
221
222 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WORD_DATA))
223 return -EOPNOTSUPP;
224

--- 54 unchanged lines hidden (view full) ---

279};
280MODULE_DEVICE_TABLE(i2c, tmp006_id);
281
282static struct i2c_driver tmp006_driver = {
283 .driver = {
284 .name = "tmp006",
285 .pm = pm_sleep_ptr(&tmp006_pm_ops),
286 },
216{
217 struct iio_dev *indio_dev;
218 struct tmp006_data *data;
219 int ret;
220
221 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_WORD_DATA))
222 return -EOPNOTSUPP;
223

--- 54 unchanged lines hidden (view full) ---

278};
279MODULE_DEVICE_TABLE(i2c, tmp006_id);
280
281static struct i2c_driver tmp006_driver = {
282 .driver = {
283 .name = "tmp006",
284 .pm = pm_sleep_ptr(&tmp006_pm_ops),
285 },
287 .probe = tmp006_probe,
286 .probe_new = tmp006_probe,
288 .id_table = tmp006_id,
289};
290module_i2c_driver(tmp006_driver);
291
292MODULE_AUTHOR("Peter Meerwald <pmeerw@pmeerw.net>");
293MODULE_DESCRIPTION("TI TMP006 IR thermopile sensor driver");
294MODULE_LICENSE("GPL");
287 .id_table = tmp006_id,
288};
289module_i2c_driver(tmp006_driver);
290
291MODULE_AUTHOR("Peter Meerwald <pmeerw@pmeerw.net>");
292MODULE_DESCRIPTION("TI TMP006 IR thermopile sensor driver");
293MODULE_LICENSE("GPL");