Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3943525yba; Wed, 17 Apr 2019 00:57:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLHN4Izc2fJshlUZwnwHEtYv/FenZRhYsDKa1TQ2/H+FkIym261jbsFZyx+cdOUmQzmH5s X-Received: by 2002:a63:e051:: with SMTP id n17mr81352273pgj.19.1555487824015; Wed, 17 Apr 2019 00:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555487824; cv=none; d=google.com; s=arc-20160816; b=ytZ4wDkCsxvIp42PzX3BaZwba7FOS8vhxwAeO4AvFKs+T7UVDZ7nzccFqrcQ8sRA0a XklnLl2fwUojCITG2oyTheW7uy5h8Dww4j1HUxOGlTQ4MtD8eELPyWwOGpUB4X4N/+zy P2DJF09Y5jPeLWC0TDVsMjAkay6RdPnBEIqAmWRI5jPw07lbCXHzxeGrUwV0AOM6OI6p hFKHjow4KFt9pXpeb52drzkmpcDStoq8Ke6OAMYHx5RFmOWABGKUDW7vq15rnaUPSVNZ wcPowlajYLunMI8tac7mMRlQ5xTxlaaEey3mk+NayYIOXnlrqCQH6U5THWfRXd0Xz8UT TDVw== 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; bh=fs5EDYtKuuWXEyo65GTIzDXeuCxRS9kwf5g5GV4tfgE=; b=KmQFHuVSxh9AB1nr3G0UoXnWHOdXbKqyKUuODi+r7QIEPdX1QpWPnuKqW6jIDcKGAl ayuzwnWTkScTCoBYOtOpjqavKSCGuFCO3mm0JygLNOUgLTKb6VqtSfR/VsIfOCutTL3E cLsLpOhYxp1L+m+bgjYG6DFOEEwyd2KvidPjQVOEv28quTCfD7+NYLO8Pf5JS81Wn4ua Lct02mhdoOqmqZ+9lJ89CP8q845vYSQMEI3rB95uYKeTeSMEpdpD0kfhbN7Ml/frpEOK hvkZUW1Bg59Ze57hNKH8DNEY/cLtBEc6e77/L+EvqiJt2yYMmaLJzZqxZ8KqT1zvVOSE 4n+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 a12si48954398pls.209.2019.04.17.00.56.49; Wed, 17 Apr 2019 00:57:04 -0700 (PDT) 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; 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 S1731411AbfDQHzj (ORCPT + 99 others); Wed, 17 Apr 2019 03:55:39 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35165 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731392AbfDQHzf (ORCPT ); Wed, 17 Apr 2019 03:55:35 -0400 X-Originating-IP: 90.88.160.238 Received: from localhost (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 1B9BCC0017; Wed, 17 Apr 2019 07:55:31 +0000 (UTC) From: Maxime Ripard To: Daniel Vetter , David Airlie , Maarten Lankhorst , Sean Paul , Maxime Ripard , Mauro Carvalho Chehab Cc: Sakari Ailus , Hans Verkuil , Laurent Pinchart , Thomas Petazzoni , Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH 12/20] drm/ipuv3: Convert to generic image format library Date: Wed, 17 Apr 2019 09:54:38 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/ipu-v3/ipu-pre.c | 3 ++- drivers/gpu/ipu-v3/ipu-prg.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-pre.c b/drivers/gpu/ipu-v3/ipu-pre.c index 6cacfd61d984..83bfcaefe1d3 100644 --- a/drivers/gpu/ipu-v3/ipu-pre.c +++ b/drivers/gpu/ipu-v3/ipu-pre.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -174,7 +175,7 @@ void ipu_pre_configure(struct ipu_pre *pre, unsigned int width, unsigned int height, unsigned int stride, u32 format, uint64_t modifier, unsigned int bufaddr) { - const struct drm_format_info *info = drm_format_info(format); + const struct image_format_info *info = image_format_drm_lookup(format); u32 active_bpp = info->cpp[0] >> 1; u32 val; diff --git a/drivers/gpu/ipu-v3/ipu-prg.c b/drivers/gpu/ipu-v3/ipu-prg.c index 94b76badf677..042c141ad07e 100644 --- a/drivers/gpu/ipu-v3/ipu-prg.c +++ b/drivers/gpu/ipu-v3/ipu-prg.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -132,7 +133,7 @@ EXPORT_SYMBOL_GPL(ipu_prg_present); bool ipu_prg_format_supported(struct ipu_soc *ipu, uint32_t format, uint64_t modifier) { - const struct drm_format_info *info = drm_format_info(format); + const struct image_format_info *info = image_format_drm_lookup(format); if (info->num_planes != 1) return false; -- git-series 0.9.1