Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3943919yba; Wed, 17 Apr 2019 00:57:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwtct3pBqkaGhtBlSTZgI0m4aiB07+sHkD2/QenTJHPv6rOaxSVdCyc40ki0JKVkfcwkti X-Received: by 2002:a17:902:be0a:: with SMTP id r10mr84426969pls.4.1555487865406; Wed, 17 Apr 2019 00:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555487865; cv=none; d=google.com; s=arc-20160816; b=wRY5O1zP/xxwztt0ChdgtMibZAuuPO7SckJIDcGpILZpacKAJ4vhJvBKsZOmAJS491 vO+d261L4dxNYy72Biz6O2WLwQXADIhy1ve1Ta7Bc3QyrkPgnBFarrQGj2iLmHksKsl1 b/EQI0K1jqlp8qlR24EaJETazB0gyYKjkz+gJ40P7pJYF6hs5m8a6Lwh5FrDIIVhJ9Fc xpweQ+7awN+BexhjGttpmGE2QRdIVXqQ9iMk+nf2oFuRuujvMSuCFL5TvJ+qlCc43bcK thaWvcF5CFRgJXhZtaw/HzHy7/dVeCqtxEmp55F7gzlBse7LorE6XwsgFFocRaAZNYAB dZqw== 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=IqQetVd2ox1p7pesJPpIOwHVJmOdLSEZn7xRSwXU3EE=; b=M9+dKpD/bstVNW/r67ZKo7etEZW1xcJ9GQYfh79sPNH0F0JzWgEmE58lZ+XoBoao3F otA7RNo6xlIsCbePQ2XWe6XJdKPaX8D1Lphm8mvHtcPWLiUDSe6JKXYUR7t6CWcQVgei Yby5xg2PkZprK6LIuis7Aa2A6kqb+ybTBxBXCunosqAYp85R9er+fILfce7ggQZ6zzp8 vLsJC6yhDD9BJKBBPprMQ2/Pv4q3EuUiIOqKYNvOgwj3jnQYKszzVGz0i8T2lvnxvO9q vE1NID/7cmFZ63IE+/5WibkvpWeuJCykSBueraMIBbI6BHAA+DfS2WJAZDIoWWUl++Zf GFXQ== 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 i27si48046975pgl.305.2019.04.17.00.57.30; Wed, 17 Apr 2019 00:57:45 -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 S1731509AbfDQH4K (ORCPT + 99 others); Wed, 17 Apr 2019 03:56:10 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:46893 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729328AbfDQH4I (ORCPT ); Wed, 17 Apr 2019 03:56:08 -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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id AFBB7FF802; Wed, 17 Apr 2019 07:56:02 +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 15/20] drm/rockchip: Convert to generic image format library Date: Wed, 17 Apr 2019 09:54:41 +0200 Message-Id: <6f47fce6f111d0d915dc155152e92060c7ea26f9.1555487650.git-series.maxime.ripard@bootlin.com> 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/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 345d5cb5e956..bbd82c986b57 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