blob: 93b4095edaab1ee1453e219c3d338c0d19460cc0 [file] [log] [blame]
#ifndef __ASM_ARM_ARCH_FLASHLIGHT_H
#define __ASM_ARM_ARCH_FLASHLIGHT_H
#define FLASHLIGHT_NAME "flashlight"
#define FLASHLIGHT_OFF 0
#define FLASHLIGHT_TORCH 1
#define FLASHLIGHT_FLASH 2
#define FLASHLIGHT_NUM 3
struct flashlight_platform_data {
int (*gpio_init) (void);
int torch;
int flash;
int flash_duration_ms;
};
int flashlight_control(int level);
#endif /*__ASM_ARM_ARCH_FLASHLIGHT_H*/