[media] exynos4-is: Convert index variable to signed
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 16 Apr 2013 06:02:20 +0000 (03:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 12:33:14 +0000 (09:33 -0300)
index variable is used to check the validity of the data by
testing for negative values. Hence make it signed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/fimc-core.h
drivers/media/platform/exynos4-is/fimc-lite.h

index d2fe162485a3c0b4451beac1d1ee22684632753f..953b074d542f1859fc367532e58e4349bda701a6 100644 (file)
@@ -425,7 +425,7 @@ struct fimc_dev {
        struct regmap                   *sysreg;
        const struct fimc_variant       *variant;
        const struct fimc_drvdata       *drv_data;
-       u16                             id;
+       int                             id;
        struct clk                      *clock[MAX_FIMC_CLOCKS];
        void __iomem                    *regs;
        wait_queue_head_t               irq_queue;
index 71fed5129e3020553994ce660cf2b326549920d4..47da5e04924775b385c83cc3ba3c42027eccc261 100644 (file)
@@ -140,7 +140,7 @@ struct fimc_lite {
        struct v4l2_subdev      *sensor;
        struct v4l2_ctrl_handler ctrl_handler;
        struct v4l2_ctrl        *test_pattern;
-       u32                     index;
+       int                     index;
        struct fimc_pipeline    pipeline;
        const struct fimc_pipeline_ops *pipeline_ops;