This source file includes following definitions.
- fimc_is_sensor_get_drvdata
1
2
3
4
5
6
7
8
9 #include "fimc-is-sensor.h"
10
11 static const struct sensor_drv_data s5k6a3_drvdata = {
12 .id = FIMC_IS_SENSOR_ID_S5K6A3,
13 .open_timeout = S5K6A3_OPEN_TIMEOUT,
14 };
15
16 static const struct of_device_id fimc_is_sensor_of_ids[] = {
17 {
18 .compatible = "samsung,s5k6a3",
19 .data = &s5k6a3_drvdata,
20 },
21 { }
22 };
23
24 const struct sensor_drv_data *fimc_is_sensor_get_drvdata(
25 struct device_node *node)
26 {
27 const struct of_device_id *of_id;
28
29 of_id = of_match_node(fimc_is_sensor_of_ids, node);
30 return of_id ? of_id->data : NULL;
31 }