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

Go to the source code of this file.

Data Structures

struct  max517_data
 

Macros

#define MAX517_DRV_NAME   "max517"
 
#define COMMAND_CHANNEL0   0x00
 
#define COMMAND_CHANNEL1   0x01 /* for MAX518 and MAX519 */
 
#define COMMAND_PD   0x08 /* Power Down */
 
#define MAX517_PM_OPS   NULL
 
#define MAX517_CHANNEL(chan)
 

Enumerations

enum  max517_device_ids { ID_MAX517, ID_MAX518, ID_MAX519 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, max517_id)
 
 module_i2c_driver (max517_driver)
 
 MODULE_AUTHOR ("Roland Stigge <[email protected]>")
 
 MODULE_DESCRIPTION ("MAX517/MAX518/MAX519 8-bit DAC")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define COMMAND_CHANNEL0   0x00

Definition at line 35 of file max517.c.

#define COMMAND_CHANNEL1   0x01 /* for MAX518 and MAX519 */

Definition at line 36 of file max517.c.

#define COMMAND_PD   0x08 /* Power Down */

Definition at line 37 of file max517.c.

#define MAX517_CHANNEL (   chan)
Value:
{ \
.type = IIO_VOLTAGE, \
.indexed = 1, \
.output = 1, \
.channel = (chan), \
.scan_type = IIO_ST('u', 8, 8, 0), \
}

Definition at line 144 of file max517.c.

#define MAX517_DRV_NAME   "max517"

Definition at line 32 of file max517.c.

#define MAX517_PM_OPS   NULL

Definition at line 135 of file max517.c.

Enumeration Type Documentation

Enumerator:
ID_MAX517 
ID_MAX518 
ID_MAX519 

Definition at line 39 of file max517.c.

Function Documentation

MODULE_AUTHOR ( "Roland Stigge <[email protected]>"  )
MODULE_DESCRIPTION ( "MAX517/MAX518/MAX519 8-bit DAC )
MODULE_DEVICE_TABLE ( i2c  ,
max517_id   
)
module_i2c_driver ( max517_driver  )
MODULE_LICENSE ( "GPL"  )