Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4373155ybf; Wed, 4 Mar 2020 02:42:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vsYB3fL47ESozUFpFh9Asf+KiIzrfbsVpY5DMIaBFRMdYpEsaAxVh5dzgHUqT9lYtu/5q7R X-Received: by 2002:a9d:76d6:: with SMTP id p22mr1848910otl.37.1583318545305; Wed, 04 Mar 2020 02:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583318545; cv=none; d=google.com; s=arc-20160816; b=t253/4fLIvMipdpy6fXcsbEMmPTnJes39hfL9ZIv0ZZhxzL/qwPdLuaqZy34NSUxjW hd9ve4VMvNuxMgdFDL3xMtjZQA4Gge/pzXDypIazxvwwDg3hmaZtnqwVjoy3OZWvmLyI BYh02taboUES3OXfJsqSHHD6tmHEzuv+jDa9Eq7B4cL3/x4ryT6YxtyFy/Pyl77ncbAQ 3MJuEKUs9XdPzsOAbeT2BerqmmjHol5yPhIY0GSCr5dkWqc+3qDW52e44GOHw+UZyNlP tjAYDnot6Rvk16GKqxmIT9CVaiJySAE3MPxn0DC8/qpR5d9MPG7nzIx0UM0IGcX6WCjH sWSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=t/8VSn4BSTxpxifrr9xpvRTdlmzrHeBSw3JBloziieU=; b=Ro8d+o/WPsD9ui1z0A3UhKMr+VD9Gx57GOOY7dFeHVO+y6v0QVb9giMqhqVo3T7ofU rsLQd0XrjHZ83J0477z5KZJaP9gSbX0EFChwdpmqobwY2P3meN5knk8Aq5F/rCxWXNQQ II5QYsz8k+UTvi3Ady+hRpPWqBvn7Qek+Bjj+Y2JXHyIAFGN2JPS4Uaw9hUdzlj/7RJb +dB6Vci+oW4sG5levFLSw5rzXXPugN2mi9wn4gdwRnBho647Fh3t/ivxu1/ycRQH7hST AVeBmymBp7kxCeZiCSGvRrOlBPp9Pt6l5iHOSSu8NbIfWIMdOd1DtLhvYP8mnhA137HH k5oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XcGhPvIs; 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 w33si912501otb.48.2020.03.04.02.42.13; Wed, 04 Mar 2020 02:42:25 -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 header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XcGhPvIs; 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 S2387987AbgCDKl2 (ORCPT + 99 others); Wed, 4 Mar 2020 05:41:28 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46131 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387870AbgCDKlG (ORCPT ); Wed, 4 Mar 2020 05:41:06 -0500 Received: by mail-wr1-f65.google.com with SMTP id j7so1728755wrp.13 for ; Wed, 04 Mar 2020 02:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t/8VSn4BSTxpxifrr9xpvRTdlmzrHeBSw3JBloziieU=; b=XcGhPvIsT0kOHFNFSXWK3ZzMv8C4/UFyZ5LndTo1MXYOxVPx1j05mGkqc9FC3we4bK lT/qwwtVuTAO0Y4yNF2qNNQj9eEDMm9NGQDPEhzCMPQJpStz5U0u8Vu6qAj21Dv3r5Dz j6gwWGbKE+TYPkBcrM/+aPFcXpCFg6yqfVxqQ2vCPiSz/1szy/72S5wzUqs1akUl2wDb Vp4Bakgqk6bff6UnSxKng+RT+u48v4bo16TI3vic6gtfvWqH6IdB1JuzlwwzbDkRJnjO q7ScHi3ErH7DvyZBOni0R+2M2cWWUxWFbAhxwSWCCUiUHS118MKFQE6RmZjkyMJ3jMXT WrNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=t/8VSn4BSTxpxifrr9xpvRTdlmzrHeBSw3JBloziieU=; b=soqz5Eo+0RtG/z8srNKkKzvl8mtMUVknZ41N9c1lypNliewmMhlTm79XmgWL2TB31R GDy2ecHCYU5JGPvno9v49vO6UHxZWh5liVF4JXNO5rdbndcKPjQWkG9K0JVZr/+CHPE4 Zmka6mD5fEqDpH62UuZPc/RDJ44YVo4J4ij+5+n4fVPjFQes5+ybgW56ayP0BW9zyhj2 N1Z1xyHY1yNOnmFAHEaGj7IN8KScIbDyFrfI+YjUyWnaYuyWelReM4Vh40DJD1/0If2B pO5KaqrmoNKCut0qB3mateS3emf/zT+EQJbtbLUkNFdYqxKgGQrVfZpMLTDFr7HMvCo3 DAdA== X-Gm-Message-State: ANhLgQ07Wb1SRTL455L9dnNgdhKFF+sgWr15pGXmfyaZIBtXiPhLa44A 6SN9HeSNq4evJzcGqOmpOF5cmw== X-Received: by 2002:a5d:69cb:: with SMTP id s11mr3338076wrw.47.1583318465253; Wed, 04 Mar 2020 02:41:05 -0800 (PST) Received: from bender.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id c14sm24006398wro.36.2020.03.04.02.41.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 02:41:04 -0800 (PST) From: Neil Armstrong To: a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, boris.brezillon@collabora.com Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Laurent Pinchart Subject: [PATCH v5 06/11] drm/meson: venc: make drm_display_mode const Date: Wed, 4 Mar 2020 11:40:47 +0100 Message-Id: <20200304104052.17196-7-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200304104052.17196-1-narmstrong@baylibre.com> References: <20200304104052.17196-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Before switching to bridge funcs, make sure drm_display_mode is passed as const to the venc functions. Signed-off-by: Neil Armstrong Reviewed-by: Boris Brezillon Acked-by: Laurent Pinchart Reviewed-by: Jernej Škrabec --- 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); -- 2.22.0