Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smsc47m192.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/hwmon-vid.h>
#include <linux/err.h>
#include <linux/sysfs.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  smsc47m192_data
 

Macros

#define SMSC47M192_REG_IN(nr)
 
#define SMSC47M192_REG_IN_MAX(nr)
 
#define SMSC47M192_REG_IN_MIN(nr)
 
#define SMSC47M192_REG_TEMP_OFFSET(nr)   ((nr) == 2 ? 0x1e : 0x1f)
 
#define SMSC47M192_REG_ALARM1   0x41
 
#define SMSC47M192_REG_ALARM2   0x42
 
#define SMSC47M192_REG_VID   0x47
 
#define SMSC47M192_REG_VID4   0x49
 
#define SMSC47M192_REG_CONFIG   0x40
 
#define SMSC47M192_REG_SFR   0x4f
 
#define SMSC47M192_REG_COMPANY_ID   0x3e
 
#define SMSC47M192_REG_VERSION   0x3f
 
#define show_in_offset(offset)
 
#define show_temp_index(index)
 

Functions

 MODULE_DEVICE_TABLE (i2c, smsc47m192_id)
 
 show_in_offset (0)
 
 show_temp_index (1)
 
 module_i2c_driver (smsc47m192_driver)
 
 MODULE_AUTHOR ("Hartmut Rick <[email protected]>")
 
 MODULE_DESCRIPTION ("SMSC47M192 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define show_in_offset (   offset)
Value:
static SENSOR_DEVICE_ATTR(in##offset##_input, S_IRUGO, \
show_in_min, set_in_min, offset); \
show_in_max, set_in_max, offset);

Definition at line 212 of file smsc47m192.c.

#define show_temp_index (   index)
Value:
static SENSOR_DEVICE_ATTR(temp##index##_input, S_IRUGO, \
show_temp_min, set_temp_min, index-1); \
show_temp_max, set_temp_max, index-1); \
show_temp_offset, set_temp_offset, index-1);

Definition at line 347 of file smsc47m192.c.

#define SMSC47M192_REG_ALARM1   0x41

Definition at line 50 of file smsc47m192.c.

#define SMSC47M192_REG_ALARM2   0x42

Definition at line 51 of file smsc47m192.c.

#define SMSC47M192_REG_COMPANY_ID   0x3e

Definition at line 56 of file smsc47m192.c.

#define SMSC47M192_REG_CONFIG   0x40

Definition at line 54 of file smsc47m192.c.

#define SMSC47M192_REG_IN (   nr)
Value:
((nr) < 6 ? (0x20 + (nr)) : \
(0x50 + (nr) - 6))

Definition at line 40 of file smsc47m192.c.

#define SMSC47M192_REG_IN_MAX (   nr)
Value:
((nr) < 6 ? (0x2b + (nr) * 2) : \
(0x54 + (((nr) - 6) * 2)))

Definition at line 42 of file smsc47m192.c.

#define SMSC47M192_REG_IN_MIN (   nr)
Value:
((nr) < 6 ? (0x2c + (nr) * 2) : \
(0x55 + (((nr) - 6) * 2)))

Definition at line 44 of file smsc47m192.c.

#define SMSC47M192_REG_SFR   0x4f

Definition at line 55 of file smsc47m192.c.

#define SMSC47M192_REG_TEMP_OFFSET (   nr)    ((nr) == 2 ? 0x1e : 0x1f)

Definition at line 49 of file smsc47m192.c.

#define SMSC47M192_REG_VERSION   0x3f

Definition at line 57 of file smsc47m192.c.

#define SMSC47M192_REG_VID   0x47

Definition at line 52 of file smsc47m192.c.

#define SMSC47M192_REG_VID4   0x49

Definition at line 53 of file smsc47m192.c.

Function Documentation

MODULE_AUTHOR ( "Hartmut Rick <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC47M192 driver )
MODULE_DEVICE_TABLE ( i2c  ,
smsc47m192_id   
)
module_i2c_driver ( smsc47m192_driver  )
MODULE_LICENSE ( "GPL"  )
show_in_offset ( )

Definition at line 220 of file smsc47m192.c.

show_temp_index ( )

Definition at line 357 of file smsc47m192.c.