From patchwork Wed Sep 30 14:22:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7299141 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 512BB9F1D5 for ; Wed, 30 Sep 2015 14:40:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 816CC206B6 for ; Wed, 30 Sep 2015 14:40:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 87265206A7 for ; Wed, 30 Sep 2015 14:40:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B7706EC18; Wed, 30 Sep 2015 07:40:39 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org X-Greylist: delayed 923 seconds by postgrey-1.34 at gabe; Wed, 30 Sep 2015 07:40:37 PDT Received: from m50-134.163.com (m50-134.163.com [123.125.50.134]) by gabe.freedesktop.org (Postfix) with ESMTP id 39A046EC11; Wed, 30 Sep 2015 07:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=+rNvY 4PCF7uKI3iwNHrJHf8L91giQkqxgHF4XS/qvBQ=; b=n7/vwRILxBWBNCIxjg4Hs iO2j6446teyB1BNZuY4gg2YtrHHXNkk3brawXpiN6FXcTI2MacCknOVxMwEpR+ke 70CWROcJOCnmThPtTxzxwyOOAkm1Cb4HcVrUOOPMzPm87j4QwG800r1pxDL+Sk2d dVChOFP3m4U75u18HDWOyc= Received: from localhost (unknown [116.77.128.85]) by smtp4 (Coremail) with SMTP id DtGowEDJ70c28AtWOtAhAA--.2473S3; Wed, 30 Sep 2015 22:22:48 +0800 (CST) From: Geliang Tang To: Daniel Vetter , Jani Nikula , David Airlie Date: Wed, 30 Sep 2015 22:22:33 +0800 Message-Id: X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 X-CM-TRANSID: DtGowEDJ70c28AtWOtAhAA--.2473S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Zw43ZryktFyDAF13Gw4xXrb_yoW8GrWkpF 47C34j9F43u3WIgFy8AF4fCF45J3W3GayfKr1DW3sIqa1qyFyDWa1Yva45CFyj9ryfJw4S qFnxWFWxXF1kKr7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UKZXrUUUUU= X-Originating-IP: [116.77.128.85] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiNRmFmVSIJMCa0QAAsD Cc: Geliang Tang , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH] drm/i915: fix compiler warnings in intel_audio.c X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the following warnings: CC drivers/gpu/drm/i915/intel_audio.o drivers/gpu/drm/i915/intel_audio.c: In function ‘hsw_audio_codec_enable’: drivers/gpu/drm/i915/intel_audio.c:332:39: warning: passing argument 2 of ‘audio_rate_need_prog’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] if (audio_rate_need_prog(intel_crtc, adjusted_mode)) { ^ drivers/gpu/drm/i915/intel_audio.c:147:13: note: expected ‘struct drm_display_mode *’ but argument is of type ‘const struct drm_display_mode *’ static bool audio_rate_need_prog(struct intel_crtc *crtc, ^ Signed-off-by: Geliang Tang --- drivers/gpu/drm/i915/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index baadd90..72d696b 100644 --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c @@ -145,7 +145,7 @@ static uint32_t audio_config_setup_n_reg(int n, uint32_t val) /* check whether N/CTS/M need be set manually */ static bool audio_rate_need_prog(struct intel_crtc *crtc, - struct drm_display_mode *mode) + const struct drm_display_mode *mode) { if (((mode->clock == TMDS_297M) || (mode->clock == TMDS_296M)) &&