From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/media/sprd_dcam/common/flash_test.h | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 drivers/media/sprd_dcam/common/flash_test.h (limited to 'drivers/media/sprd_dcam/common/flash_test.h') diff --git a/drivers/media/sprd_dcam/common/flash_test.h b/drivers/media/sprd_dcam/common/flash_test.h new file mode 100644 index 00000000..03011b30 --- /dev/null +++ b/drivers/media/sprd_dcam/common/flash_test.h @@ -0,0 +1,38 @@ +#ifndef _FLASH_TEST_H_ +#define _FLASH_TEST_H_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifndef CONFIG_64BIT +#include +#include +#endif + +#define FLASH_TEST_DEVICE_NODE_NAME "flash_test" +#define FLASH_TEST_DEVICE_FILE_NAME "flash_test" +#define FLASH_TEST_DEVICE_PROC_NAME "flash_test" +#define FLASH_TEST_DEVICE_CLASS_NAME "flash_test" + +enum flash_status { + FLASH_CLOSE = 0x0, + FLASH_OPEN = 0x1, + FLASH_TORCH = 0x2, /*user only set flash to close/open/torch state */ + FLASH_AUTO = 0x3, + FLASH_CLOSE_AFTER_OPEN = 0x10, /* following is set to sensor */ + FLASH_HIGH_LIGHT = 0x11, + FLASH_OPEN_ON_RECORDING = 0x22, + FLASH_CLOSE_AFTER_AUTOFOCUS = 0x30, + FLASH_STATUS_MAX +}; + +#endif -- cgit v1.3.1