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: 2447621 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id BA2FB3FD8C for ; Tue, 16 Apr 2013 06:14:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754044Ab3DPGOn (ORCPT ); Tue, 16 Apr 2013 02:14:43 -0400 Received: from mail-da0-f50.google.com ([209.85.210.50]:49437 "EHLO mail-da0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753725Ab3DPGOm (ORCPT ); Tue, 16 Apr 2013 02:14:42 -0400 Received: by mail-da0-f50.google.com with SMTP id t1so93341dae.9 for ; Mon, 15 Apr 2013 23:14:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=C6tBYcjonsacrcLnxP63btPcH+TGXlICRk8HhSVDKTo=; b=Q8w7z8F3/9JITbqOyVW+mTEsTYFXukO2PQ+QLm+8ieawm0nYkBQolPZPf0TVqgVH0a 4SqO3D29DWy/R199K8dlksbiyLc0ExEtl02MlCUeUi/00TKQMLlg/++B0HYxlrBeMY5/ pRS9ygBGZWpN5Tsu51lnqeR+MqgZibGDU+yik0V6cfaJ9d6j2bUVyW54TCUwd9y9bY9S cSYXcwvGnrv/+nihwpCXZMySMR0V+lkzF318nXJK3XlMPpphYKFT8KqB/35Q0ntPX+E6 b6RCeUStva2IXa6U2PygHUP5Xz+2GQSwLsmCR56tPE7Ghm+x4gC7YzxDpWmpwuzmfofF ILeQ== 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: ALoCoQmHefiBBOQty8eU59pjQzzBPMfRAF57wlcHhMm5W9KwzXjVpNxKhyDMvJZbc+ApIqH2+3Ke Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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;