#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
Go to the source code of this file.
#define DRIVER_VERSION "1.2" |
#define TSL2550_DRV_NAME "tsl2550" |
#define TSL2550_EXTENDED_RANGE 0x1d |
#define TSL2550_MAX_LUX 1846 |
#define TSL2550_POWER_DOWN 0x00 |
#define TSL2550_POWER_UP 0x03 |
#define TSL2550_READ_ADC0 0x43 |
#define TSL2550_READ_ADC1 0x83 |
#define tsl2550_resume NULL |
#define TSL2550_STANDARD_RANGE 0x18 |
#define tsl2550_suspend NULL |
MODULE_DESCRIPTION |
( |
"TSL2550 ambient light sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
tsl2550_id |
|
|
) |
| |
module_i2c_driver |
( |
tsl2550_driver |
| ) |
|