|
Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
| struct | adp5520_gpio_platform_data |
| struct | adp5520_keys_platform_data |
| struct | adp5520_leds_platform_data |
| struct | adp5520_backlight_platform_data |
| struct | adp5520_platform_data |
Functions | |
| int | adp5520_read (struct device *dev, int reg, uint8_t *val) |
| int | adp5520_write (struct device *dev, int reg, u8 val) |
| int | adp5520_clr_bits (struct device *dev, int reg, uint8_t bit_mask) |
| int | adp5520_set_bits (struct device *dev, int reg, uint8_t bit_mask) |
| int | adp5520_register_notifier (struct device *dev, struct notifier_block *nb, unsigned int events) |
| int | adp5520_unregister_notifier (struct device *dev, struct notifier_block *nb, unsigned int events) |
| #define ADP5520_KEYMAPSIZE ADP5520_MAXKEYS |
| #define ADP5520_LED_DIS_BLINK (0 << ADP5520_FLAG_OFFT_SHIFT) |
| #define ADP5520_LED_OFFT_1200ms (3 << ADP5520_FLAG_OFFT_SHIFT) |
| #define ADP5520_LED_OFFT_600ms (1 << ADP5520_FLAG_OFFT_SHIFT) |
| #define ADP5520_LED_OFFT_800ms (2 << ADP5520_FLAG_OFFT_SHIFT) |
| #define ALS_CMPR_CFG_VAL | ( | filt, | |
| l3_en | |||
| ) | (((0x7 & filt) << 5) | l3_en) |
| #define BL_CTRL_VAL | ( | law, | |
| auto | |||
| ) | (((1 & (auto)) << 3) | ((0x3 & (law)) << 4)) |
| #define FLAG_ID_ADP5520_LED1_ADP5501_LED0 1 /* ADP5520 PIN ILED */ |
| #define FLAG_ID_ADP5520_LED2_ADP5501_LED1 2 /* ADP5520 PIN C3 */ |
| #define FLAG_ID_ADP5520_LED3_ADP5501_LED2 3 /* ADP5520 PIN R3 */ |
1.8.2