lm95241.c (090a7f8efe0be34e837d51ef27f6232356ecabf6) | lm95241.c (4b2ea08be985cb238ea03f3fd76490de950fd3cc) |
---|---|
1/* 2 * Copyright (C) 2008, 2010 Davide Rizzo <elpa.rizzo@gmail.com> 3 * 4 * The LM95241 is a sensor chip made by National Semiconductors. 5 * It reports up to three temperatures (its own plus up to two external ones). 6 * Complete datasheet can be obtained from National's website at: 7 * http://www.national.com/ds.cgi/LM/LM95241.pdf 8 * --- 7 unchanged lines hidden (view full) --- 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 22 */ 23 | 1/* 2 * Copyright (C) 2008, 2010 Davide Rizzo <elpa.rizzo@gmail.com> 3 * 4 * The LM95241 is a sensor chip made by National Semiconductors. 5 * It reports up to three temperatures (its own plus up to two external ones). 6 * Complete datasheet can be obtained from National's website at: 7 * http://www.national.com/ds.cgi/LM/LM95241.pdf 8 * --- 7 unchanged lines hidden (view full) --- 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 22 */ 23 |
24#include <linux/module.h> | 24#include <linux/err.h> 25#include <linux/i2c.h> |
25#include <linux/init.h> | 26#include <linux/init.h> |
26#include <linux/slab.h> | |
27#include <linux/jiffies.h> | 27#include <linux/jiffies.h> |
28#include <linux/i2c.h> | |
29#include <linux/hwmon.h> 30#include <linux/hwmon-sysfs.h> | 28#include <linux/hwmon.h> 29#include <linux/hwmon-sysfs.h> |
31#include <linux/err.h> | 30#include <linux/module.h> |
32#include <linux/mutex.h> | 31#include <linux/mutex.h> |
32#include <linux/slab.h> |
|
33#include <linux/sysfs.h> 34 35#define DEVNAME "lm95241" 36 37static const unsigned short normal_i2c[] = { 38 0x19, 0x2a, 0x2b, I2C_CLIENT_END }; 39 40/* LM95241 registers */ --- 428 unchanged lines hidden --- | 33#include <linux/sysfs.h> 34 35#define DEVNAME "lm95241" 36 37static const unsigned short normal_i2c[] = { 38 0x19, 0x2a, 0x2b, I2C_CLIENT_END }; 39 40/* LM95241 registers */ --- 428 unchanged lines hidden --- |