lm73.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) lm73.c (0454e799c56717ae1c799a7cc80138096b647860)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * LM73 Sensor driver
4 * Based on LM75
5 *
6 * Copyright (C) 2007, CenoSYS (www.cenosys.com).
7 * Copyright (C) 2009, Bollore telecom (www.bolloretelecom.eu).
8 *

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

257 if (id < 0 || id != LM73_ID)
258 return -ENODEV;
259
260 strlcpy(info->type, "lm73", I2C_NAME_SIZE);
261
262 return 0;
263}
264
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * LM73 Sensor driver
4 * Based on LM75
5 *
6 * Copyright (C) 2007, CenoSYS (www.cenosys.com).
7 * Copyright (C) 2009, Bollore telecom (www.bolloretelecom.eu).
8 *

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

257 if (id < 0 || id != LM73_ID)
258 return -ENODEV;
259
260 strlcpy(info->type, "lm73", I2C_NAME_SIZE);
261
262 return 0;
263}
264
265static const struct of_device_id lm73_of_match[] = {
266 {
267 .compatible = "ti,lm73",
268 },
269 { },
270};
271
272MODULE_DEVICE_TABLE(of, lm73_of_match);
273
265static struct i2c_driver lm73_driver = {
266 .class = I2C_CLASS_HWMON,
267 .driver = {
268 .name = "lm73",
274static struct i2c_driver lm73_driver = {
275 .class = I2C_CLASS_HWMON,
276 .driver = {
277 .name = "lm73",
278 .of_match_table = lm73_of_match,
269 },
270 .probe = lm73_probe,
271 .id_table = lm73_ids,
272 .detect = lm73_detect,
273 .address_list = normal_i2c,
274};
275
276module_i2c_driver(lm73_driver);
277
278MODULE_AUTHOR("Guillaume Ligneul <guillaume.ligneul@gmail.com>");
279MODULE_DESCRIPTION("LM73 driver");
280MODULE_LICENSE("GPL");
279 },
280 .probe = lm73_probe,
281 .id_table = lm73_ids,
282 .detect = lm73_detect,
283 .address_list = normal_i2c,
284};
285
286module_i2c_driver(lm73_driver);
287
288MODULE_AUTHOR("Guillaume Ligneul <guillaume.ligneul@gmail.com>");
289MODULE_DESCRIPTION("LM73 driver");
290MODULE_LICENSE("GPL");