Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
adis16220_core.c File Reference
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/module.h>
#include <linux/iio/iio.h>
#include <linux/iio/sysfs.h>
#include "adis16220.h"

Go to the source code of this file.

Data Structures

struct  adis16220_address_spec
 

Macros

#define DRIVER_NAME   "adis16220"
 
#define IIO_DEV_ATTR_CAPTURE(_store)   IIO_DEVICE_ATTR(capture, S_IWUSR, NULL, _store, 0)
 
#define IIO_DEV_ATTR_CAPTURE_COUNT(_mode, _show, _store, _addr)   IIO_DEVICE_ATTR(capture_count, _mode, _show, _store, _addr)
 

Enumerations

enum  adis16220_channel {
  in_supply, in_1, in_2, accel,
  temp
}
 

Functions

 module_spi_driver (adis16220_driver)
 
 MODULE_AUTHOR ("Barry Song <[email protected]>")
 
 MODULE_DESCRIPTION ("Analog Devices ADIS16220 Digital Vibration Sensor")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("spi:adis16220")
 

Macro Definition Documentation

#define DRIVER_NAME   "adis16220"

Definition at line 23 of file adis16220_core.c.

#define IIO_DEV_ATTR_CAPTURE (   _store)    IIO_DEVICE_ATTR(capture, S_IWUSR, NULL, _store, 0)

Definition at line 434 of file adis16220_core.c.

#define IIO_DEV_ATTR_CAPTURE_COUNT (   _mode,
  _show,
  _store,
  _addr 
)    IIO_DEVICE_ATTR(capture_count, _mode, _show, _store, _addr)

Definition at line 439 of file adis16220_core.c.

Enumeration Type Documentation

Enumerator:
in_supply 
in_1 
in_2 
accel 
temp 

Definition at line 447 of file adis16220_core.c.

Function Documentation

MODULE_ALIAS ( "spi:adis16220"  )
MODULE_AUTHOR ( "Barry Song <[email protected]>"  )
MODULE_DESCRIPTION ( "Analog Devices ADIS16220 Digital Vibration Sensor"  )
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( adis16220_driver  )