Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp35118img; Tue, 19 Mar 2019 15:02:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ5jio4nvF3fGfAQP9GaYihORKO+WPd/rFH1IbkPQnpwSu+vZd1H1VVsPJFLuBrK+obmr9 X-Received: by 2002:a63:f74c:: with SMTP id f12mr4399050pgk.124.1553032925527; Tue, 19 Mar 2019 15:02:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553032925; cv=none; d=google.com; s=arc-20160816; b=ZsUeSW6Un6rCLAh7E1D04l/SDiP96JiEzz/S8+5FuSTcFfT0Jx8k99VUjGPCiY4XK0 B3axjOMt3UafnHc/1eTYo9DQNBD/E6/ohinrcx7YFv/Y7AL076YOQGZIZwv3XPmZEMJ3 zfa2zkW2xZJ3QBDYNq47pp8KUNTbtPafjBniYatjKxScaBaMNl/5HW141KNPV8jbvvuM eWcgFH93NlKSKp6H5CvjfLYLjoKsW42IE2dbJy00MljgzCt51zi/n2iWkesRPZDtcp5h eGw3F5Njw5PPl6E/wX9SCzmnVIkTAg0dATXMwk76flt4/GN+En/rqJS4OiKy91ANXzly CYmw== 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=zHtjZ36cJJs7dC2sbta890ctEbY5o8bxweTft04uOcQ=; b=xuok+i2L89dffHDAyGnrYrhIbm8IvVHP02a6i8en1enolcedvvjvmPrW9KoBLQPO/T VNSUdIN4/lmyNlaCG64H3QBIdtHfZ7xSwp3dP3WaeHgfdXniMy+dMeE3uVQk06fE+Zc+ djrWbGoN0YQUkkfbZXu4nZlCMVc45Yj4aoQc5JWSM697PycEKFqbCf+l4qIgOnk4r5IE QMwdircV43VAIwCC03ySAsdcgP72aDLYnYFkD8tZIJzBPDvOhB67n9AnecT/iez9KheT lbxkJQxTGF8h6ac76MOb9Y+gd2t063vZab3rO1yqS+aBASabBJcgQ6HpxYoYNPfnPdOF bPWQ== 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 a98si159447pla.267.2019.03.19.15.01.50; Tue, 19 Mar 2019 15:02:05 -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 S1728005AbfCSV7Q (ORCPT + 99 others); Tue, 19 Mar 2019 17:59:16 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:46373 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727766AbfCSV6E (ORCPT ); Tue, 19 Mar 2019 17:58:04 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 5700B1BF207; Tue, 19 Mar 2019 21:57:59 +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: [RFC PATCH 12/20] drm/ipuv3: Convert to generic image format library Date: Tue, 19 Mar 2019 22:57:17 +0100 Message-Id: <56da0cae4bd0477930b355a5ddc511a570a587ee.1553032382.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.20.1 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 4a28f3fbb0a2..d561295abee0 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 38a3a9764e49..608a9213025d 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