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: 15043 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1TORcJ-0007Zi-Bi for patchwork@linuxtv.org; Wed, 17 Oct 2012 13:16:51 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1TORcI-0000BQ-Fd; Wed, 17 Oct 2012 13:16:51 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756624Ab2JQLQs (ORCPT ); Wed, 17 Oct 2012 07:16:48 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:45779 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756539Ab2JQLQq (ORCPT ); Wed, 17 Oct 2012 07:16:46 -0400 Received: by mail-pb0-f46.google.com with SMTP id rr4so7059174pbb.19 for ; Wed, 17 Oct 2012 04:16:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=7D4zzjjQqg1pKdLHBdV1f31ipVU7hnb7nk7PeFs7BW8=; b=kHv2WhvRfj6SW6gceVLyvsMpSmKm+iEgaWoF0/qZxYSV5u4KadeGC721cB4yfHlhzr LQ0A31JELD6Es8/ZfS04Ono3W4JBYF2j039MT2hlUDTk/dpLASA/jsSWYWYxW8HZFOUG jm3UwsfiKtvKKkra+g7Nw93PYta0rtwDz4S9XkFmMLcJEBKJcQLl1XhqnlQ/TW+WsanF 5hfxSmmu1DWpEP91R5NN4+YJWYTLW98RXqzLrqpWEvY3NDMG0fP/BNrlxdegpsv1LdlH J3y0p9/GT73Be0Y1NuIK6JcMN89Hn07lU8EQVF1MXzC0C4Vr9K6Fg7tlLWArc7BvOM7l t2Rw== 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: ALoCoQkZoGRC9Tz5WMya97u5EymFx1Vm6t6SNkluY9WT93RJTXbw32+ZFNCXxiYkZAfrXY23GjIx Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.10.17.110917 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1300_1399 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_SUBJECT 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' 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;