]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/media/platform/exynos4-is/fimc-is.h
Merge branch 'pull/l3noc/dts-fixes' of https://github.com/nmenon/linux-2.6-playground...
[karo-tx-linux.git] / drivers / media / platform / exynos4-is / fimc-is.h
index 61bb0127e19d525835ce75d9f55ecb848762354b..e0be691af2d33967b7c9109fbf8cae74156c05c8 100644 (file)
@@ -39,7 +39,7 @@
 #define FIMC_IS_FW_LOAD_TIMEOUT                1000 /* ms */
 #define FIMC_IS_POWER_ON_TIMEOUT       1000 /* us */
 
-#define FIMC_IS_SENSOR_NUM             2
+#define FIMC_IS_SENSORS_NUM            2
 
 /* Memory definitions */
 #define FIMC_IS_CPU_MEM_SIZE           (0xa00000)
@@ -253,7 +253,7 @@ struct fimc_is {
        struct firmware                 *f_w;
 
        struct fimc_isp                 isp;
-       struct fimc_is_sensor           *sensor;
+       struct fimc_is_sensor           sensor[FIMC_IS_SENSORS_NUM];
        struct fimc_is_setfile          setfile;
 
        struct vb2_alloc_ctx            *alloc_ctx;
@@ -292,6 +292,11 @@ static inline struct fimc_is *fimc_isp_to_is(struct fimc_isp *isp)
        return container_of(isp, struct fimc_is, isp);
 }
 
+static inline struct chain_config *__get_curr_is_config(struct fimc_is *is)
+{
+       return &is->config[is->config_index];
+}
+
 static inline void fimc_is_mem_barrier(void)
 {
        mb();