Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2104438ybf; Mon, 2 Mar 2020 02:01:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw2n7abxRYd5rCwm1DXNmTGYmkWJkd96ZAB+NZSYvSnKpxXFs/Siov7/Y5nBAyPJ9FR0N4D X-Received: by 2002:aca:2b0a:: with SMTP id i10mr11009270oik.137.1583143265819; Mon, 02 Mar 2020 02:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583143265; cv=none; d=google.com; s=arc-20160816; b=N1fTAXPHb5Ui0TDyM0UANgOWB3wFkh3ek13dtwQO6Rghfv62F3ICnPyraG9XUPM/X+ +Zq4RAeP5N4nZ5nFtaoEev3/+yfqZfUBgLEmyau/4ylZVH9y8zuDw5yrdELzlnRDkxs3 HAab/+4g/K/O91e9RCj1EGXvsOMClg5kuFUsKqHaLiIWZns3SJ3T977l0AftIpNZ+UKz CplwFqVKnFpOmxo5L8i2nGG7ZxKOygZAZpBMLCdiJG/HjQbIGjFvYaLdOQD+op3abj9H tUR3eb538KvhT2n3Qt4muhor+D3ddCGikPDsxNZKq5D3dwQAqGIdqfq33rHukkKTevy4 ST8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UfPft9tMOCpIQSH8q3B+M6+pV1lTXrpX+4OjK5lM+Mk=; b=y8CmPHc4aUgQEahXnWLOfzKlMeE/MiBKsfjm11IyU7aL5h7qByaf/qwTN8T5vvJZT8 sE42MyRpsYCVzD9xR7A2aT8hBQOySD2/b0DZ6yPPDXTYCwFrkE1uf2/SbtKltYKPuDp2 CeGLOLelLn6/nrP1WbpTrz0+lQlAY/EpqKJXOSgj5UnAWv+7B9FpUdzfq6FC9//YeQIw KkCSZa8lHC6J0P9/L9a3I+eGd52KiLdWaVujMCg6tayyyzvPav/UyuYlmwpTE0ZA42a6 EYUA2ObDAjSlkkWu9k3PIkLCAL6BKiGdsePs8tKgiCfvwzx5NFt+Ts/JXSD6Ds9f+4Jb wGGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mxrD3pbc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z184si5486904oia.217.2020.03.02.02.00.53; Mon, 02 Mar 2020 02:01:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mxrD3pbc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727654AbgCBJ72 (ORCPT + 99 others); Mon, 2 Mar 2020 04:59:28 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:51506 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727060AbgCBJ72 (ORCPT ); Mon, 2 Mar 2020 04:59:28 -0500 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 71BF454A; Mon, 2 Mar 2020 10:59:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1583143166; bh=5i4HpQvtX4R1slyHT+952QHgBdgl3htQsX3B0F6Xj3Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mxrD3pbc3SRTjb14W8QJAbbVj9qN5FxqkZyS8CiumvpluJv2iFvSkaxTRyZ5vW9ZZ 8TQMjaLKgs1gdZJ3P99IYfZSnkXezeOC4NjklKpumGr8Kl82afPcRBDFwa82isRnNh C4DcfimCx1B2bep+2jvjye2CSNiqYN5FGn+aeraU= Date: Mon, 2 Mar 2020 11:59:02 +0200 From: Laurent Pinchart To: Neil Armstrong Cc: a.hajda@samsung.com, jonas@kwiboo.se, jernej.skrabec@siol.net, boris.brezillon@collabora.com, linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 06/11] drm/meson: venc: make drm_display_mode const Message-ID: <20200302095902.GA16626@pendragon.ideasonboard.com> References: <20200206191834.6125-1-narmstrong@baylibre.com> <20200206191834.6125-7-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200206191834.6125-7-narmstrong@baylibre.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, Thank you for the patch. On Thu, Feb 06, 2020 at 08:18:29PM +0100, Neil Armstrong wrote: > Before switching to bridge funcs, make sure drm_display_mode is passed > as const to the venc functions. > > Signed-off-by: Neil Armstrong Acked-by: Laurent Pinchart > --- > drivers/gpu/drm/meson/meson_venc.c | 2 +- > drivers/gpu/drm/meson/meson_venc.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/meson/meson_venc.c b/drivers/gpu/drm/meson/meson_venc.c > index 4efd7864d5bf..a9ab78970bfe 100644 > --- a/drivers/gpu/drm/meson/meson_venc.c > +++ b/drivers/gpu/drm/meson/meson_venc.c > @@ -946,7 +946,7 @@ bool meson_venc_hdmi_venc_repeat(int vic) > EXPORT_SYMBOL_GPL(meson_venc_hdmi_venc_repeat); > > void meson_venc_hdmi_mode_set(struct meson_drm *priv, int vic, > - struct drm_display_mode *mode) > + const struct drm_display_mode *mode) > { > union meson_hdmi_venc_mode *vmode = NULL; > union meson_hdmi_venc_mode vmode_dmt; > diff --git a/drivers/gpu/drm/meson/meson_venc.h b/drivers/gpu/drm/meson/meson_venc.h > index 576768bdd08d..1abdcbdf51c0 100644 > --- a/drivers/gpu/drm/meson/meson_venc.h > +++ b/drivers/gpu/drm/meson/meson_venc.h > @@ -60,7 +60,7 @@ extern struct meson_cvbs_enci_mode meson_cvbs_enci_ntsc; > void meson_venci_cvbs_mode_set(struct meson_drm *priv, > struct meson_cvbs_enci_mode *mode); > void meson_venc_hdmi_mode_set(struct meson_drm *priv, int vic, > - struct drm_display_mode *mode); > + const struct drm_display_mode *mode); > unsigned int meson_venci_get_field(struct meson_drm *priv); > > void meson_venc_enable_vsync(struct meson_drm *priv); -- Regards, Laurent Pinchart