From patchwork Wed Oct 17 11:11:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 12301 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A14F51D5170 for ; Wed, 17 Oct 2012 11:16:48 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 50C7AA18243 for ; Wed, 17 Oct 2012 11:16:48 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so5203519iag.11 for ; Wed, 17 Oct 2012 04:16:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=7D4zzjjQqg1pKdLHBdV1f31ipVU7hnb7nk7PeFs7BW8=; b=bkTcmy9/St6g+zfjUlQCszyygQLZBUpMF+DlRP65i/yzSr8NDMZ9LIo09y+dSIz21A WWftiUuoyd1kflZ5qh1MF37U0TGEqelfhsAeLMeQQkc7xK4mcbd3JnO8LOy9lPE+7zQd rBLXMoWzg4BI8HVWuwNOcDUkP/ocuXSyrRF3gzrXL9KydvaCPcf/1UvkQqYrCRiG0gfS pa2ZOua2ZXE6yU6hKKHydny/odUZNnUTSj4R6FIRfco4ajAhqWg5GrA9gkWPSr1Ai9FL yqu3yxI/glCL8PoFtNdoPDZ8eUHFSfw93TF55mxosKYmuK/zMNU/r5B+P8uJqTKE/EX3 Cmxg== Received: by 10.50.236.72 with SMTP id us8mr1127363igc.70.1350472608110; Wed, 17 Oct 2012 04:16:48 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp878456igt; Wed, 17 Oct 2012 04:16:47 -0700 (PDT) Received: by 10.68.203.137 with SMTP id kq9mr5750399pbc.96.1350472607491; Wed, 17 Oct 2012 04:16:47 -0700 (PDT) Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by mx.google.com with ESMTPS id n5si30370894paw.60.2012.10.17.04.16.47 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 04:16:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pa0-f50.google.com with SMTP id hz11so7789257pad.37 for ; Wed, 17 Oct 2012 04:16:47 -0700 (PDT) Received: by 10.66.75.162 with SMTP id d2mr49537552paw.27.1350472606238; Wed, 17 Oct 2012 04:16:46 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id vu7sm12365003pbc.9.2012.10.17.04.16.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 04:16:45 -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 6/8] [media] exynos-gsc: Fix compilation warning Date: Wed, 17 Oct 2012 16:41:49 +0530 Message-Id: <1350472311-9748-6-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1350472311-9748-1-git-send-email-sachin.kamat@linaro.org> References: <1350472311-9748-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQnnmTvD3H3cFpLgs+s8WM0C8JPA/WCV0vzYaB5JkubThsTE2E+G/9fjq+yQJDFefrzIaymo Used type casting to avoid the following compilation warning: drivers/media/platform/exynos-gsc/gsc-core.c:983:37: warning: incorrect type in assignment (different modifiers) drivers/media/platform/exynos-gsc/gsc-core.c:983:37: expected struct gsc_driverdata *driver_data drivers/media/platform/exynos-gsc/gsc-core.c:983:37: got void const *data Signed-off-by: Sachin Kamat --- drivers/media/platform/exynos-gsc/gsc-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index d11668b..9b86ef6 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c @@ -980,7 +980,7 @@ static void *gsc_get_drv_data(struct platform_device *pdev) match = of_match_node(of_match_ptr(exynos_gsc_match), pdev->dev.of_node); if (match) - driver_data = match->data; + driver_data = (struct gsc_driverdata *)match->data; } else { driver_data = (struct gsc_driverdata *) platform_get_device_id(pdev)->driver_data;