Linux Kernel
3.7.1
|
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/module.h>
Go to the source code of this file.
Data Structures | |
struct | bh1780_data |
Macros | |
#define | BH1780_REG_CONTROL 0x80 |
#define | BH1780_REG_PARTID 0x8A |
#define | BH1780_REG_MANFID 0x8B |
#define | BH1780_REG_DLOW 0x8C |
#define | BH1780_REG_DHIGH 0x8D |
#define | BH1780_REVMASK (0xf) |
#define | BH1780_POWMASK (0x3) |
#define | BH1780_POFF (0x0) |
#define | BH1780_PON (0x3) |
#define | BH1780_PON_DELAY 2 |
#define | BH1780_PMOPS NULL |
Functions | |
module_i2c_driver (bh1780_driver) | |
MODULE_DESCRIPTION ("BH1780GLI Ambient Light Sensor Driver") | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("Hemanth V <[email protected]>") | |
#define BH1780_PMOPS NULL |
Definition at line 241 of file bh1780gli.c.
#define BH1780_POFF (0x0) |
Definition at line 35 of file bh1780gli.c.
#define BH1780_PON (0x3) |
Definition at line 36 of file bh1780gli.c.
#define BH1780_PON_DELAY 2 |
Definition at line 39 of file bh1780gli.c.
#define BH1780_POWMASK (0x3) |
Definition at line 34 of file bh1780gli.c.
#define BH1780_REG_CONTROL 0x80 |
Definition at line 27 of file bh1780gli.c.
#define BH1780_REG_DHIGH 0x8D |
Definition at line 31 of file bh1780gli.c.
#define BH1780_REG_DLOW 0x8C |
Definition at line 30 of file bh1780gli.c.
#define BH1780_REG_MANFID 0x8B |
Definition at line 29 of file bh1780gli.c.
#define BH1780_REG_PARTID 0x8A |
Definition at line 28 of file bh1780gli.c.
#define BH1780_REVMASK (0xf) |
Definition at line 33 of file bh1780gli.c.
MODULE_AUTHOR | ( | "Hemanth V <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "BH1780GLI Ambient Light Sensor Driver" | ) |
module_i2c_driver | ( | bh1780_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |