From patchwork Tue Oct 17 09:06:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 116053 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4638332qgn; Tue, 17 Oct 2017 02:08:42 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBBI3yBp1x5cEl0RmC9aS3M9hmWuGSfxMSJjPf4kMnOP9QRftxVjlesqC1HPCXXPyeWMaac X-Received: by 10.84.199.170 with SMTP id r39mr11419199pld.356.1508231322509; Tue, 17 Oct 2017 02:08:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508231322; cv=none; d=google.com; s=arc-20160816; b=kiMwqVb4EWA4WygiFiO5KvRUBb+L0qV2jMMaDQyWc3LkdIi464MvWKdDB1oPXww+i6 /nndvi/k9sHHQMAFEjKxSm0k7dJEGd2e4Ft3I0mzKiEQz54wNyGTt33TWD/U0xDQssmI n4byPLRyNd7QiZJ13S5ZsjCMvKYD6a8XElkojZkxQsYt2K11IWwxHfROcQcGD4+kQlFs Y7gW29icNIRNOwE1AfprNOx2Lyl3639xuctowYrVAUarUb0ZCFir7Y4V9Wo/QVsFJR/s Cf3RfyQg7lKkYv2zBvego19P/8hN5qrlUJs30r/JoF0p74c5PtG2Lv8v2X2wKyXD9Tj5 LQtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:references:in-reply-to:references:in-reply-to :message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=oCaXhUN/7zqJkbV/pB5ovL88xgiceTPmCv93O3CeFbk=; b=weI2NZaiHPNsEh3GG6YOlmaJktaKAOW1fI84hGSy7+e+duNfWG1BFK1waJi1CZ36PK LiheRDmBellYdbvoVF/3hy1ythCoQgVy0qX1slTLLHFC9cYfJRHBnDql/oe2mxdnLhz0 hX3BGxfA6LtCuESl3YFJPO0NJ0eeTFmn36CfR0OGMWrFOO2InLovvhz9nY7ZnzYtIrfE WnM1DdWf/T+Q+NwDqqB1Pi3artg86Qrq8tsoNT9YGQBMHhNAObHZIpeU4zNyXfKpkxIP blGMlMucvJB9OcRSvjLmmE/CQtEJDcrwmmRJneZvBXAypSv70cMpSDdVye6fWnkvHKk8 npaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v9si4398704pgt.770.2017.10.17.02.08.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 02:08:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C33D76E638; Tue, 17 Oct 2017 09:06:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 785DC6E600 for ; Tue, 17 Oct 2017 09:06:41 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 99B7F2088E; Tue, 17 Oct 2017 11:06:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 70C6320888; Tue, 17 Oct 2017 11:06:39 +0200 (CEST) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH 04/23] drm/sun4i: tcon: Make tcon_get_clk_delay mode argument const Date: Tue, 17 Oct 2017 11:06:11 +0200 Message-Id: X-Mailer: git-send-email 2.14.2 In-Reply-To: References: In-Reply-To: References: Cc: Mark Rutland , Thomas Petazzoni , plaes@plaes.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Quentin Schulz , Rob Herring , Mylene Josserand , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, icenowy@aosc.io X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The drm_display_mode pointer can be mark const, so let's do it. Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 54e1796d2953..9b5b21ad8378 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -146,7 +146,7 @@ void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel, } EXPORT_SYMBOL(sun4i_tcon_set_mux); -static int sun4i_tcon_get_clk_delay(struct drm_display_mode *mode, +static int sun4i_tcon_get_clk_delay(const struct drm_display_mode *mode, int channel) { int delay = mode->vtotal - mode->vdisplay;