diff options
author | Daniel jeong | 2014-07-08 02:36:58 -0500 |
---|---|---|
committer | Daniel jeong | 2014-07-08 02:36:58 -0500 |
commit | 8d7a7a34313492dc4a7cf4c828b9cf56a2777a99 (patch) | |
tree | 00e6998fab3787bc1e5b2997a6e88c251b919da1 /include | |
parent | ff460dbaf38bb6537869b3f0141bfc1b946e8cc0 (diff) | |
download | kernel-8d7a7a34313492dc4a7cf4c828b9cf56a2777a99.tar.gz kernel-8d7a7a34313492dc4a7cf4c828b9cf56a2777a99.tar.xz kernel-8d7a7a34313492dc4a7cf4c828b9cf56a2777a99.zip |
remove lm3643 all
Signed-off-by: Daniel jeong <daniel.jeong@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/platform_data/leds-lm3643.h | 17 | ||||
-rw-r--r-- | include/media/lm3643.h | 86 | ||||
-rw-r--r-- | include/uapi/linux/v4l2-controls.h | 1 |
3 files changed, 0 insertions, 104 deletions
diff --git a/include/linux/platform_data/leds-lm3643.h b/include/linux/platform_data/leds-lm3643.h deleted file mode 100644 index 9782cd0..0000000 --- a/include/linux/platform_data/leds-lm3643.h +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | /* | ||
2 | * Simple driver for Texas Instruments LM3643 LED Flash driver chip | ||
3 | * Copyright (C) 2014 Texas Instruments | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | #ifndef __LM3643_H | ||
12 | #define __LM3643_H | ||
13 | |||
14 | #define LM3643_NAME "leds-lm3643" | ||
15 | #define LM3643_ADDR 0x63 | ||
16 | |||
17 | #endif /* __LM3643_H */ | ||
diff --git a/include/media/lm3643.h b/include/media/lm3643.h deleted file mode 100644 index 591dd9c..0000000 --- a/include/media/lm3643.h +++ /dev/null | |||
@@ -1,86 +0,0 @@ | |||
1 | /* | ||
2 | * include/media/lm3643.h | ||
3 | * | ||
4 | * Copyright (C) 2014 Texas Instruments | ||
5 | * | ||
6 | * Contact: Daniel Jeong <gshark.jeong@gmail.com> | ||
7 | * Ldd-Mlp <ldd-mlp@list.ti.com> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public License | ||
11 | * version 2 as published by the Free Software Foundation. | ||
12 | * | ||
13 | * This program is distributed in the hope that it will be useful, but | ||
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | * General Public License for more details. | ||
17 | */ | ||
18 | |||
19 | #ifndef __LM3643_H__ | ||
20 | #define __LM3643_H__ | ||
21 | |||
22 | #include <media/v4l2-subdev.h> | ||
23 | |||
24 | #define LM3643_NAME "lm3643" | ||
25 | #define LM3643_I2C_ADDR (0x63) | ||
26 | |||
27 | /* FLASH Brightness | ||
28 | * min 11310uA, step 11720uA, max 1500000uA | ||
29 | */ | ||
30 | #define LM3643_FLASH_BRT_MIN 11310 | ||
31 | #define LM3643_FLASH_BRT_STEP 11720 | ||
32 | #define LM3643_FLASH_BRT_MAX 1500000 | ||
33 | #define LM3643_FLASH_BRT_uA_TO_REG(a) \ | ||
34 | ((a) < LM3643_FLASH_BRT_MIN ? 0 : \ | ||
35 | (((a) - LM3643_FLASH_BRT_MIN) / LM3643_FLASH_BRT_STEP)) | ||
36 | |||
37 | /* TORCH BRT | ||
38 | * min 1060uA, step 1460uA, max 187000uA | ||
39 | */ | ||
40 | #define LM3643_TORCH_BRT_MIN 1060 | ||
41 | #define LM3643_TORCH_BRT_STEP 1460 | ||
42 | #define LM3643_TORCH_BRT_MAX 187000 | ||
43 | #define LM3643_TORCH_BRT_uA_TO_REG(a) \ | ||
44 | ((a) < LM3643_TORCH_BRT_MIN ? 0 : \ | ||
45 | (((a) - LM3643_TORCH_BRT_MIN) / LM3643_TORCH_BRT_STEP)) | ||
46 | |||
47 | /* FLASH TIMEOUT DURATION | ||
48 | * min 10ms, max 400ms | ||
49 | * step 10ms in range from 10ms to 100ms | ||
50 | * setp 50ms in range from 100ms to 400ms | ||
51 | */ | ||
52 | #define LM3643_FLASH_TOUT_MIN 10 | ||
53 | #define LM3643_FLASH_TOUT_LOW_STEP 10 | ||
54 | #define LM3643_FLASH_TOUT_LOW_MAX 100 | ||
55 | #define LM3643_FLASH_TOUT_HIGH_STEP 50 | ||
56 | #define LM3643_FLASH_TOUT_MAX 400 | ||
57 | #define LM3643_FLASH_TOUT_ms_TO_REG(a) \ | ||
58 | ((a) < LM3643_FLASH_TOUT_MIN ? 0 : \ | ||
59 | ((a) <= LM3643_FLASH_TOUT_LOW_MAX ? \ | ||
60 | (((a) - LM3643_FLASH_TOUT_MIN) / LM3643_FLASH_TOUT_LOW_STEP) : \ | ||
61 | ((((a) - LM3643_FLASH_TOUT_LOW_MAX) / LM3643_FLASH_TOUT_HIGH_STEP) \ | ||
62 | +((LM3643_FLASH_TOUT_LOW_MAX - LM3643_FLASH_TOUT_MIN) \ | ||
63 | / LM3643_FLASH_TOUT_LOW_STEP)))) | ||
64 | |||
65 | enum lm3643_led_id { | ||
66 | LM3643_LED0 = 0, | ||
67 | LM3643_LED1, | ||
68 | LM3643_LED_MAX | ||
69 | }; | ||
70 | |||
71 | /* | ||
72 | * struct lm3643_platform_data | ||
73 | * @led0_enable : led0 enable | ||
74 | * @led1_enable : led1 enable | ||
75 | * @flash1_override : led1 flash current override | ||
76 | * @torch1_override : led1 torch current override | ||
77 | */ | ||
78 | struct lm3643_platform_data { | ||
79 | |||
80 | u8 led0_enable; | ||
81 | u8 led1_enable; | ||
82 | u8 flash1_override; | ||
83 | u8 torch1_override; | ||
84 | }; | ||
85 | |||
86 | #endif /* __LM3643_H__ */ | ||
diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index b18d894..1666aab 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h | |||
@@ -779,7 +779,6 @@ enum v4l2_flash_led_mode { | |||
779 | V4L2_FLASH_LED_MODE_NONE, | 779 | V4L2_FLASH_LED_MODE_NONE, |
780 | V4L2_FLASH_LED_MODE_FLASH, | 780 | V4L2_FLASH_LED_MODE_FLASH, |
781 | V4L2_FLASH_LED_MODE_TORCH, | 781 | V4L2_FLASH_LED_MODE_TORCH, |
782 | V4L2_FLASH_LED_MODE_IR, | ||
783 | }; | 782 | }; |
784 | 783 | ||
785 | #define V4L2_CID_FLASH_STROBE_SOURCE (V4L2_CID_FLASH_CLASS_BASE + 2) | 784 | #define V4L2_CID_FLASH_STROBE_SOURCE (V4L2_CID_FLASH_CLASS_BASE + 2) |