Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
asc7621.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/err.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  asc7621_chip
 
struct  asc7621_data
 
struct  asc7621_param
 

Macros

#define INTERVAL_HIGH   (HZ + HZ / 2)
 
#define INTERVAL_LOW   (1 * 60 * HZ)
 
#define PRI_NONE   0
 
#define PRI_LOW   1
 
#define PRI_HIGH   2
 
#define FIRST_CHIP   asc7621
 
#define LAST_CHIP   asc7621a
 
#define LAST_REGISTER   0xff
 
#define to_asc7621_param(_sda)   container_of(_sda, struct asc7621_param, sda)
 
#define SETUP_SHOW_data_param(d, a)
 
#define SETUP_STORE_data_param(d, a)
 
#define VAA(args...)   {args}
 
#define PREAD(name, n, pri, rm, rl, m, s, r)
 
#define PWRITE(name, n, pri, rm, rl, m, s, r)
 
#define PWRITEM(name, n, pri, rm, rl, m, s, r)
 

Enumerations

enum  asc7621_type { asc7621, asc7621a }
 

Functions

 MODULE_DEVICE_TABLE (i2c, asc7621_id)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("George Joseph")
 
 MODULE_DESCRIPTION ("Andigilog aSC7621 and aSC7621a driver")
 
 module_init (sm_asc7621_init)
 
 module_exit (sm_asc7621_exit)
 

Macro Definition Documentation

#define FIRST_CHIP   asc7621

Definition at line 45 of file asc7621.c.

#define INTERVAL_HIGH   (HZ + HZ / 2)

Definition at line 40 of file asc7621.c.

#define INTERVAL_LOW   (1 * 60 * HZ)

Definition at line 41 of file asc7621.c.

#define LAST_CHIP   asc7621a

Definition at line 46 of file asc7621.c.

#define LAST_REGISTER   0xff

Definition at line 87 of file asc7621.c.

#define PREAD (   name,
  n,
  pri,
  rm,
  rl,
  m,
  s,
  r 
)
Value:
{.sda = SENSOR_ATTR(name, S_IRUGO, show_##r, NULL, n), \
.priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
.shift[0] = s,}

Definition at line 813 of file asc7621.c.

#define PRI_HIGH   2

Definition at line 44 of file asc7621.c.

#define PRI_LOW   1

Definition at line 43 of file asc7621.c.

#define PRI_NONE   0

Definition at line 42 of file asc7621.c.

#define PWRITE (   name,
  n,
  pri,
  rm,
  rl,
  m,
  s,
  r 
)
Value:
{.sda = SENSOR_ATTR(name, S_IRUGO | S_IWUSR, show_##r, store_##r, n), \
.priority = pri, .msb[0] = rm, .lsb[0] = rl, .mask[0] = m, \
.shift[0] = s,}

Definition at line 818 of file asc7621.c.

#define PWRITEM (   name,
  n,
  pri,
  rm,
  rl,
  m,
  s,
  r 
)
Value:
{.sda = SENSOR_ATTR(name, S_IRUGO | S_IWUSR, show_##r, store_##r, n), \
.priority = pri, .msb = rm, .lsb = rl, .mask = m, .shift = s,}

Definition at line 827 of file asc7621.c.

#define SETUP_SHOW_data_param (   d,
  a 
)
Value:

Definition at line 162 of file asc7621.c.

#define SETUP_STORE_data_param (   d,
  a 
)
#define to_asc7621_param (   _sda)    container_of(_sda, struct asc7621_param, sda)

Definition at line 109 of file asc7621.c.

#define VAA (   args...)    {args}

Definition at line 811 of file asc7621.c.

Enumeration Type Documentation

Enumerator:
asc7621 
asc7621a 

Definition at line 35 of file asc7621.c.

Function Documentation

MODULE_AUTHOR ( "George Joseph"  )
MODULE_DESCRIPTION ( "Andigilog aSC7621 and aSC7621a driver )
MODULE_DEVICE_TABLE ( i2c  ,
asc7621_id   
)
module_exit ( sm_asc7621_exit  )
module_init ( sm_asc7621_init  )
MODULE_LICENSE ( "GPL"  )