blob: c998f01e08a295be972bbac8c3f3e4db2ddba175 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/poll.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/cdev.h>
#include <linux/errno.h>
#include <linux/time.h>
#include <asm/io.h>
#include <linux/uaccess.h>
#include "kd_camera_hw.h"
#ifdef CONFIG_COMPAT
#include <linux/fs.h>
#include <linux/compat.h>
#endif
#include "kd_flashlight.h"
int strobe_getPartId(int sensorDev)
{
// return 1 or 2 (backup flash part). Other numbers are invalid.
if(sensorDev == e_CAMERA_MAIN_SENSOR)
{
return 1;
}
else if(sensorDev == e_CAMERA_SUB_SENSOR)
{
return 1;
}
else //e_CAMERA_MAIN_2_SENSOR
{
return 200;
}
return 100;
}
|