Commit | Line | Data |
---|---|---|
b8d9834a SN |
1 | /* |
2 | * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver | |
3 | * | |
4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. | |
b8d9834a SN |
5 | * Author: Sylwester Nawrocki <s.nawrocki@samsung.com> |
6 | * | |
7 | * This program is free software; you can redistribute it and/or modify | |
8 | * it under the terms of the GNU General Public License version 2 as | |
9 | * published by the Free Software Foundation. | |
10 | */ | |
b8d9834a | 11 | |
b8d9834a SN |
12 | #include "fimc-is-sensor.h" |
13 | ||
b8d9834a SN |
14 | static const struct sensor_drv_data s5k6a3_drvdata = { |
15 | .id = FIMC_IS_SENSOR_ID_S5K6A3, | |
d265d9ac | 16 | .open_timeout = S5K6A3_OPEN_TIMEOUT, |
b8d9834a SN |
17 | }; |
18 | ||
d265d9ac | 19 | static const struct of_device_id fimc_is_sensor_of_ids[] = { |
b8d9834a SN |
20 | { |
21 | .compatible = "samsung,s5k6a3", | |
22 | .data = &s5k6a3_drvdata, | |
23 | }, | |
24 | { } | |
25 | }; | |
b8d9834a | 26 | |
d265d9ac SN |
27 | const struct sensor_drv_data *fimc_is_sensor_get_drvdata( |
28 | struct device_node *node) | |
b8d9834a | 29 | { |
d265d9ac | 30 | const struct of_device_id *of_id; |
b8d9834a | 31 | |
d265d9ac SN |
32 | of_id = of_match_node(fimc_is_sensor_of_ids, node); |
33 | return of_id ? of_id->data : NULL; | |
b8d9834a | 34 | } |