From patchwork Tue Oct 17 09:06:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 116034 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp4636463qgn; Tue, 17 Oct 2017 02:06:46 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBYnAOd1u8s6YgC1DsiYP2/4kSG/chtyVqLF5pnLx0+ES+HOtZWhNl88lYfKmtjAFDXUQGI X-Received: by 10.159.253.142 with SMTP id q14mr11476456pls.82.1508231206229; Tue, 17 Oct 2017 02:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508231206; cv=none; d=google.com; s=arc-20160816; b=pQM6DVNk7fP63GJ217HTXoc4jOwblVvzEULwcR2dIHiwvCiS69+9dsBMYA2DfItzA9 wZlJZNZ3fnXCI7CChug919eWzn308TAOKVnW4mm4M/oJ2MiR2FixbZBgJT7xyodAdVIP fuVjar7cfe/mK3gGPmLSVYJH6Yj4lqHiXgF+AOset9n7OCaLR+7t3UuG766SsCiPcvAf jw8eYw8JxgD0wPlOJqk2ZGFDs7ChJPlm/85ah5gN4/i+MX0++4yLlFyYjMMkU3XnIN6Q rdl0Ufqi6THssiI+ZBwvwuZ6c1gyOERe+NKoX/FEssOojZiFNg5SGMnU50yLCDkrgfXo wBUg== 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=hez33pG9FCNsDvUsZnG8rKMn3uFsL7ZE3C/5Bxt5NPc=; b=Z7PTHxKF5VaM3P8Lr0BqASqyBSQXw8/sRwdVTuiLjHKoh4cDE0bgvpCIeUV+7Qpzkw 6zJNmQJAsgAUA9Eytfmmtnq1lsiHOd2zM3H5amhX6N9dIdNrIX6XtGtuH0DsZfrSeyjb GwUgzR8fM0oHcXp+SEPXbzWVyQPIy89+YLRc7sCfSlpnTAOV70W+iSt8GltXBhRWRY0l vYapS/8RhY3AqxQeo9EEOoVv8C8nQUanBaBC1tvIlOsc5Ekw03vaL8hf/Fn9bD1G29PD nBcRTQsEXxRP4mwz76QMOudkn0oXPYc2SdB91U3WC6Vr4Gxz54LdEBQqmgq1mLaOZkXG eACA== 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 b9si5716446pls.832.2017.10.17.02.06.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 02:06:46 -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 48BAB6E59F; Tue, 17 Oct 2017 09:06:42 +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 162DE6E600 for ; Tue, 17 Oct 2017 09:06:41 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 3781420889; 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 0F5FF20884; Tue, 17 Oct 2017 11:06:39 +0200 (CEST) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH 03/23] drm/sun4i: tcon: Make tcon_set_mux mode argument const Date: Tue, 17 Oct 2017 11:06:10 +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 --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 6 +++--- drivers/gpu/drm/sun4i/sun4i_tcon.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 68751b999877..54e1796d2953 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c @@ -134,7 +134,7 @@ static struct sun4i_tcon *sun4i_get_tcon0(struct drm_device *drm) } void sun4i_tcon_set_mux(struct sun4i_tcon *tcon, int channel, - struct drm_encoder *encoder) + const struct drm_encoder *encoder) { int ret = -ENOTSUPP; @@ -783,7 +783,7 @@ static int sun4i_tcon_remove(struct platform_device *pdev) /* platform specific TCON muxing callbacks */ static int sun5i_a13_tcon_set_mux(struct sun4i_tcon *tcon, - struct drm_encoder *encoder) + const struct drm_encoder *encoder) { u32 val; @@ -799,7 +799,7 @@ static int sun5i_a13_tcon_set_mux(struct sun4i_tcon *tcon, } static int sun6i_tcon_set_mux(struct sun4i_tcon *tcon, - struct drm_encoder *encoder) + const struct drm_encoder *encoder) { struct sun4i_tcon *tcon0 = sun4i_get_tcon0(encoder->dev); u32 shift; diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h index d9e1357cc8ae..d81c6e20efe6 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.h +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h @@ -152,7 +152,7 @@ struct sun4i_tcon_quirks { bool needs_de_be_mux; /* sun6i needs mux to select backend */ /* callback to handle tcon muxing options */ - int (*set_mux)(struct sun4i_tcon *, struct drm_encoder *); + int (*set_mux)(struct sun4i_tcon *, const struct drm_encoder *); }; struct sun4i_tcon {