#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/i2c.h>
#include <linux/mfd/core.h>
#include <linux/regmap.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/mfd/lm3533.h>
Go to the source code of this file.
|
#define | LM3533_BOOST_OVP_MASK 0x06 |
|
#define | LM3533_BOOST_OVP_SHIFT 1 |
|
#define | LM3533_BOOST_FREQ_MASK 0x01 |
|
#define | LM3533_BOOST_FREQ_SHIFT 0 |
|
#define | LM3533_BL_ID_MASK 1 |
|
#define | LM3533_LED_ID_MASK 3 |
|
#define | LM3533_BL_ID_MAX 1 |
|
#define | LM3533_LED_ID_MAX 3 |
|
#define | LM3533_HVLED_ID_MAX 2 |
|
#define | LM3533_LVLED_ID_MAX 5 |
|
#define | LM3533_REG_OUTPUT_CONF1 0x10 |
|
#define | LM3533_REG_OUTPUT_CONF2 0x11 |
|
#define | LM3533_REG_BOOST_PWM 0x2c |
|
#define | LM3533_REG_MAX 0xb2 |
|
#define | to_lm3533_dev_attr(_attr) container_of(_attr, struct lm3533_device_attribute, dev_attr) |
|
#define | LM3533_OUTPUT_ATTR(_name, _mode, _show, _store, _type, _id) |
|
#define | LM3533_OUTPUT_ATTR_RW(_name, _type, _id) |
|
#define | LM3533_OUTPUT_HVLED_ATTR_RW(_nr) LM3533_OUTPUT_ATTR_RW(hvled##_nr, LM3533_ATTR_TYPE_BACKLIGHT, _nr) |
|
#define | LM3533_OUTPUT_LVLED_ATTR_RW(_nr) LM3533_OUTPUT_ATTR_RW(lvled##_nr, LM3533_ATTR_TYPE_LED, _nr) |
|
#define | to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) |
|
#define LM3533_BL_ID_MASK 1 |
#define LM3533_BL_ID_MAX 1 |
#define LM3533_BOOST_FREQ_MASK 0x01 |
#define LM3533_BOOST_FREQ_SHIFT 0 |
#define LM3533_BOOST_OVP_MASK 0x06 |
#define LM3533_BOOST_OVP_SHIFT 1 |
#define LM3533_HVLED_ID_MAX 2 |
#define LM3533_LED_ID_MASK 3 |
#define LM3533_LED_ID_MAX 3 |
#define LM3533_LVLED_ID_MAX 5 |
#define LM3533_OUTPUT_ATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store, |
|
|
|
_type, |
|
|
|
_id |
|
) |
| |
Value:
.type = _type, \
.u.output = { .id = _id }, }
Definition at line 320 of file lm3533-core.c.
#define LM3533_OUTPUT_ATTR_RW |
( |
|
_name, |
|
|
|
_type, |
|
|
|
_id |
|
) |
| |
Value:
show_output, store_output, _type, _id)
Definition at line 326 of file lm3533-core.c.
#define LM3533_REG_BOOST_PWM 0x2c |
#define LM3533_REG_MAX 0xb2 |
#define LM3533_REG_OUTPUT_CONF1 0x10 |
#define LM3533_REG_OUTPUT_CONF2 0x11 |
- Enumerator:
LM3533_ATTR_TYPE_BACKLIGHT |
|
LM3533_ATTR_TYPE_LED |
|
Definition at line 242 of file lm3533-core.c.
MODULE_DESCRIPTION |
( |
"LM3533 Core" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
lm3533_i2c_ids |
|
|
) |
| |
module_exit |
( |
lm3533_i2c_exit |
| ) |
|
subsys_initcall |
( |
lm3533_i2c_init |
| ) |
|