diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2011-02-28 09:12:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-03-22 03:54:16 -0400 |
commit | 117182d18399a956719be94d3e6e17aad9210cda (patch) | |
tree | d888d420f2354af873d2db7acd997e371bf0ef45 /include | |
parent | 4ecbf5d1d2bb7d1e3882de79e512c1a0a2816581 (diff) |
[media] s5p-fimc: Allow defining number of sensors at runtime
Add num_clients field to struct s5p_fimc_isp_info to define exactly
size of clients array which simplifies a bit the sensors management.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/s5p_fimc.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/media/s5p_fimc.h b/include/media/s5p_fimc.h index 0d457cac8f7d..82496d38a96a 100644 --- a/include/media/s5p_fimc.h +++ b/include/media/s5p_fimc.h | |||
@@ -46,15 +46,14 @@ struct s5p_fimc_isp_info { | |||
46 | u16 flags; | 46 | u16 flags; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | |||
50 | #define FIMC_MAX_CAMIF_CLIENTS 2 | ||
51 | |||
52 | /** | 49 | /** |
53 | * struct s5p_platform_fimc - camera host interface platform data | 50 | * struct s5p_platform_fimc - camera host interface platform data |
54 | * | 51 | * |
55 | * @isp_info: properties of camera sensor required for host interface setup | 52 | * @isp_info: properties of camera sensor required for host interface setup |
53 | * @num_clients: the number of attached image sensors | ||
56 | */ | 54 | */ |
57 | struct s5p_platform_fimc { | 55 | struct s5p_platform_fimc { |
58 | struct s5p_fimc_isp_info *isp_info[FIMC_MAX_CAMIF_CLIENTS]; | 56 | struct s5p_fimc_isp_info *isp_info; |
57 | int num_clients; | ||
59 | }; | 58 | }; |
60 | #endif /* S5P_FIMC_H_ */ | 59 | #endif /* S5P_FIMC_H_ */ |