Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | #ifndef __ASM_ARM_ARCH_FLASHLIGHT_H |
2 | #define __ASM_ARM_ARCH_FLASHLIGHT_H | ||||
3 | |||||
4 | #define FLASHLIGHT_NAME "flashlight" | ||||
5 | |||||
6 | #define FLASHLIGHT_OFF 0 | ||||
7 | #define FLASHLIGHT_TORCH 1 | ||||
8 | #define FLASHLIGHT_FLASH 2 | ||||
9 | #define FLASHLIGHT_NUM 3 | ||||
10 | |||||
11 | struct flashlight_platform_data { | ||||
12 | int (*gpio_init) (void); | ||||
13 | int torch; | ||||
14 | int flash; | ||||
15 | int flash_duration_ms; | ||||
16 | }; | ||||
17 | |||||
18 | int flashlight_control(int level); | ||||
19 | |||||
20 | #endif /*__ASM_ARM_ARCH_FLASHLIGHT_H*/ |