lm95241.c (310ec79210d754afe51e2e4a983e846b60179abd) | lm95241.c (c3813d6af177fab19e322f3114b1f64fbcf08d71) |
---|---|
1/* 2 * lm95241.c - Part of lm_sensors, Linux kernel modules for hardware 3 * monitoring 4 * Copyright (C) 2008 Davide Rizzo <elpa-rizzo@gmail.com> 5 * 6 * Based on the max1619 driver. The LM95241 is a sensor chip made by National 7 * Semiconductors. 8 * It reports up to three temperatures (its own plus up to --- 446 unchanged lines hidden (view full) --- 455 .class = I2C_CLASS_HWMON, 456 .driver = { 457 .name = "lm95241", 458 }, 459 .probe = lm95241_probe, 460 .remove = lm95241_remove, 461 .id_table = lm95241_id, 462 .detect = lm95241_detect, | 1/* 2 * lm95241.c - Part of lm_sensors, Linux kernel modules for hardware 3 * monitoring 4 * Copyright (C) 2008 Davide Rizzo <elpa-rizzo@gmail.com> 5 * 6 * Based on the max1619 driver. The LM95241 is a sensor chip made by National 7 * Semiconductors. 8 * It reports up to three temperatures (its own plus up to --- 446 unchanged lines hidden (view full) --- 455 .class = I2C_CLASS_HWMON, 456 .driver = { 457 .name = "lm95241", 458 }, 459 .probe = lm95241_probe, 460 .remove = lm95241_remove, 461 .id_table = lm95241_id, 462 .detect = lm95241_detect, |
463 .address_data = &addr_data, | 463 .address_list = normal_i2c, |
464}; 465 466static int __init sensors_lm95241_init(void) 467{ 468 return i2c_add_driver(&lm95241_driver); 469} 470 471static void __exit sensors_lm95241_exit(void) 472{ 473 i2c_del_driver(&lm95241_driver); 474} 475 476MODULE_AUTHOR("Davide Rizzo <elpa-rizzo@gmail.com>"); 477MODULE_DESCRIPTION("LM95241 sensor driver"); 478MODULE_LICENSE("GPL"); 479 480module_init(sensors_lm95241_init); 481module_exit(sensors_lm95241_exit); | 464}; 465 466static int __init sensors_lm95241_init(void) 467{ 468 return i2c_add_driver(&lm95241_driver); 469} 470 471static void __exit sensors_lm95241_exit(void) 472{ 473 i2c_del_driver(&lm95241_driver); 474} 475 476MODULE_AUTHOR("Davide Rizzo <elpa-rizzo@gmail.com>"); 477MODULE_DESCRIPTION("LM95241 sensor driver"); 478MODULE_LICENSE("GPL"); 479 480module_init(sensors_lm95241_init); 481module_exit(sensors_lm95241_exit); |