Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp33563img; Tue, 19 Mar 2019 15:00:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqynXXy+L+dkMSziLs8daolx+JlT7R7Cbxb+2lCxfbtlfDF8fwx6kQLE86vdLfjBo3KYHJh5 X-Received: by 2002:a17:902:e85:: with SMTP id 5mr4339000plx.13.1553032813556; Tue, 19 Mar 2019 15:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553032813; cv=none; d=google.com; s=arc-20160816; b=kJttnyg4FoDVLndqUPOuJC2IF1gDF1V4dYxan/uilG1d7VtJx4LwWgxcMkB9CBJ60U D9t2OnVQn34kssW2MIq+Dxa75XZ6mlpU7kWhkUb+YtdWEiRkW7BxPj5aDjM91Q6ifuyK 6rAYDO6wzz2ZzV2suN9ZKYCGC1J96ZX6l7q48Q37sgDHiT3ie9L6NUQ+w0QC06GtEGHd tkTFJo4qBNeoBqHZIGVGWzinT9qAuL2tKtuWiWDlqDLXvUPG2yQfCwWd5Q4xcrSPiQzd 3L6ftGl6jhAALs1P56QyKc177Hd8BtqlWHmlG8HYN7kK2xANOmq35n1PmE5o72OVN9/F DXEA== 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=6B5hGPyB4IfCxe1XgKhxhMUCRCLVgNj3NLmHkzc8NLE=; b=KfEu5EA6CC1MRWZ7+xU8qK7TBY3Qik/EZeV4GaUYHwITto6I08cTPJTDg05qDjMtp2 UpKbwNJZQQl4tasW1m+HdgPcFJImlIQYp+FUBf8yqWlkamxBwEX0TIvrqB0XTtxmposC G5GVsPhGilogF3wRTqrjjZMor7Uh5sokNMOSRS8Lhb24lMUd5PrpR88IF6F8sGXODf+N Uf2wdrOsbeIot62BuxSOSPXKTiWnL4VOKKNlVmeC0Unl3pDEww97AOhhJmZuHH5KfWL+ GidWutfZ1kPeBHmTpbJbM6sfARSTlOmSTHWHegAEx8yl4vw1JUecEyHuKYvCZOgNz4MX H8gg== 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 l14si24869pfj.112.2019.03.19.14.59.58; Tue, 19 Mar 2019 15:00:13 -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 S1727860AbfCSV6N (ORCPT + 99 others); Tue, 19 Mar 2019 17:58:13 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38895 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbfCSV6L (ORCPT ); Tue, 19 Mar 2019 17:58:11 -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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 0324CFF80D; Tue, 19 Mar 2019 21:58:07 +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 15/20] drm/rockchip: Convert to generic image format library Date: Tue, 19 Mar 2019 22:57:20 +0100 Message-Id: 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/drm/rockchip/rockchip_drm_vop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 88c3902057f3..8f4cfadfd6cd 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -317,7 +318,7 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win, uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, uint32_t pixel_format) { - const struct drm_format_info *info = drm_format_info(pixel_format); + const struct image_format_info *info = image_format_drm_lookup(pixel_format); uint16_t yrgb_hor_scl_mode, yrgb_ver_scl_mode; uint16_t cbcr_hor_scl_mode = SCALE_NONE; uint16_t cbcr_ver_scl_mode = SCALE_NONE; -- git-series 0.9.1