M7350/kernel/arch/arm/mach-msm/board-mahimahi-flashlight.h
2024-09-09 08:52:07 +00:00

21 lines
407 B
C

#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*/