Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lp8788_adc.c File Reference
#include <linux/delay.h>
#include <linux/iio/iio.h>
#include <linux/iio/driver.h>
#include <linux/iio/machine.h>
#include <linux/mfd/lp8788.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  lp8788_adc
 

Macros

#define LP8788_ADC_CONF   0x60
 
#define LP8788_ADC_RAW   0x61
 
#define LP8788_ADC_DONE   0x63
 
#define ADC_CONV_START   1
 
#define LP8788_CHAN(_id, _type)
 

Functions

 module_platform_driver (lp8788_adc_driver)
 
 MODULE_DESCRIPTION ("Texas Instruments LP8788 ADC Driver")
 
 MODULE_AUTHOR ("Milo Kim")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:lp8788-adc")
 

Macro Definition Documentation

#define ADC_CONV_START   1

Definition at line 28 of file lp8788_adc.c.

#define LP8788_ADC_CONF   0x60

Definition at line 24 of file lp8788_adc.c.

#define LP8788_ADC_DONE   0x63

Definition at line 26 of file lp8788_adc.c.

#define LP8788_ADC_RAW   0x61

Definition at line 25 of file lp8788_adc.c.

#define LP8788_CHAN (   _id,
  _type 
)
Value:
{ \
.type = _type, \
.indexed = 1, \
.channel = LPADC_##_id, \
IIO_CHAN_INFO_SCALE_SEPARATE_BIT, \
.datasheet_name = #_id, \
}

Definition at line 131 of file lp8788_adc.c.

Function Documentation

MODULE_ALIAS ( "platform:lp8788-adc )
MODULE_AUTHOR ( "Milo Kim"  )
MODULE_DESCRIPTION ( "Texas Instruments LP8788 ADC Driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( lp8788_adc_driver  )