From patchwork Tue Apr 16 06:02:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 16145 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CF1952395D for ; Tue, 16 Apr 2013 06:15:16 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id m1sf182638wea.3 for ; Mon, 15 Apr 2013 23:14:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=C6tBYcjonsacrcLnxP63btPcH+TGXlICRk8HhSVDKTo=; b=oaKIa7uxDchIqnn7MxGm0XsETC8TmDmWLvYgL5VULFu9EmzmIIhMmXvJRIMkwpp6Ex 4c8slLj/KLAK7vd/0vLAxeCRognG1lh4bf1dFAXY4Mb9w4PVahVdiAJLQDEhcsDbyv19 52lBVSk/O9JRz/RigZ11nSzJxu8LBv51cUGZOqjdM9GD6KnSGxWw2R9vo+bZNb+ReXbu BpOrfBej510Uhtvcln+YOcBRwJ0HY+b8S0CXxOUKX/a40UonQMj7G/E/8DkTNBwBAhgZ +t1LoJDuZ9Abjw1m587PjhjYo8AHeh1OiVFU3oOYYum8yvRqnP0vOfmeKclqZGRUZd9X usEw== X-Received: by 10.180.11.239 with SMTP id t15mr220015wib.5.1366092884228; Mon, 15 Apr 2013 23:14:44 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.183.69 with SMTP id ek5ls809313wic.30.canary; Mon, 15 Apr 2013 23:14:44 -0700 (PDT) X-Received: by 10.194.83.33 with SMTP id n1mr1187757wjy.7.1366092884161; Mon, 15 Apr 2013 23:14:44 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id pv9si153711wjc.77.2013.04.15.23.14.43 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 23:14:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id 14so113277vea.1 for ; Mon, 15 Apr 2013 23:14:43 -0700 (PDT) X-Received: by 10.220.175.3 with SMTP id v3mr588713vcz.8.1366092883081; Mon, 15 Apr 2013 23:14:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp8853veb; Mon, 15 Apr 2013 23:14:42 -0700 (PDT) X-Received: by 10.68.99.226 with SMTP id et2mr1200079pbb.91.1366092882234; Mon, 15 Apr 2013 23:14:42 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id vu9si797695pbc.158.2013.04.15.23.14.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 23:14:42 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id lb1so162888pab.5 for ; Mon, 15 Apr 2013 23:14:41 -0700 (PDT) X-Received: by 10.66.154.196 with SMTP id vq4mr1086673pab.105.1366092881833; Mon, 15 Apr 2013 23:14:41 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id li15sm1333239pab.2.2013.04.15.23.14.39 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 23:14:41 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/5] [media] exynos4-is: Convert index variable to signed Date: Tue, 16 Apr 2013 11:32:20 +0530 Message-Id: <1366092143-5482-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1366092143-5482-1-git-send-email-sachin.kamat@linaro.org> References: <1366092143-5482-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQnVsWOR17pOq0m3rNnVjipjmD4w/nNuHahChFV+U+lQ2ZO5NFvjNnz0XO7udj2c25AHwbSb X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- drivers/media/platform/exynos4-is/fimc-core.h | 2 +- drivers/media/platform/exynos4-is/fimc-lite.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-core.h b/drivers/media/platform/exynos4-is/fimc-core.h index d2fe162..953b074 100644 --- a/drivers/media/platform/exynos4-is/fimc-core.h +++ b/drivers/media/platform/exynos4-is/fimc-core.h @@ -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; diff --git a/drivers/media/platform/exynos4-is/fimc-lite.h b/drivers/media/platform/exynos4-is/fimc-lite.h index 71fed51..47da5e0 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.h +++ b/drivers/media/platform/exynos4-is/fimc-lite.h @@ -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;