Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
gp2ap002a00f.c File Reference
#include <linux/i2c.h>
#include <linux/irq.h>
#include <linux/slab.h>
#include <linux/input.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/delay.h>
#include <linux/input/gp2ap002a00f.h>

Go to the source code of this file.

Data Structures

struct  gp2a_data
 

Enumerations

enum  gp2a_addr {
  GP2A_ADDR_PROX = 0x0, GP2A_ADDR_GAIN = 0x1, GP2A_ADDR_HYS = 0x2, GP2A_ADDR_CYCLE = 0x3,
  GP2A_ADDR_OPMOD = 0x4, GP2A_ADDR_CON = 0x6
}
 
enum  gp2a_controls { GP2A_CTRL_SSD = 0x01 }
 

Functions

 module_i2c_driver (gp2a_i2c_driver)
 
 MODULE_AUTHOR ("Courtney Cavin <[email protected]>")
 
 MODULE_DESCRIPTION ("Sharp GP2AP002A00F I2C Proximity/Opto sensor driver")
 
 MODULE_LICENSE ("GPL v2")
 

Enumeration Type Documentation

enum gp2a_addr
Enumerator:
GP2A_ADDR_PROX 
GP2A_ADDR_GAIN 
GP2A_ADDR_HYS 
GP2A_ADDR_CYCLE 
GP2A_ADDR_OPMOD 
GP2A_ADDR_CON 

Definition at line 28 of file gp2ap002a00f.c.

Enumerator:
GP2A_CTRL_SSD 

Definition at line 37 of file gp2ap002a00f.c.

Function Documentation

MODULE_AUTHOR ( "Courtney Cavin <[email protected]>"  )
MODULE_DESCRIPTION ( "Sharp GP2AP002A00F I2C Proximity/Opto sensor driver )
module_i2c_driver ( gp2a_i2c_driver  )
MODULE_LICENSE ( "GPL v2 )