Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3214240imu; Sat, 24 Nov 2018 00:16:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uo7/FPHWghIMG/ZA1a9DKkUf08/J5jdid9qBzOwQRFeQF3mRXZOvjdBWY5xJNz6tcFNUQT X-Received: by 2002:a63:85c6:: with SMTP id u189mr11930204pgd.156.1543047364114; Sat, 24 Nov 2018 00:16:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047364; cv=none; d=google.com; s=arc-20160816; b=VYI5Zsgja0+BcMfboNrBAGOa8rmxUxGbKOB0sDLbcpoZ+7PXKz5nG3M7iTQfeXJCMV Bqx0yNX4uydGPGLr0vdCVVQ13iUmTlQnyLCuyxgAAyhorPaUC21sU6aaD+pyiccCqn/R mhm88xBtENv/dysEPamqz8E5r8naObm9LZqqTwwfuck9HNDqoeYpbfWxkyczDiPk7cMj 9UeO95FByREW4y4NWtWbqmiFwjk2GvEfoOR0H1MxpXYCjXKXiDefx2J6YIDnPR1bMYqf G4nTqiuvvr6w/dIPEKG1MgKIX8PD61c9HnnyL4u6gnPsYhLaaOoMkMCmSSHXnYiC2SMb Db/A== 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=idqxM2fVJuSO8m50ZrnRxOpbYaizQaXOtJ2O5VyHR+g=; b=Z5ItnmSMuTDYFvc4NL0Lb2zE/e/aovT7HbRxMA9364VxmkLxoWroTXwCtnJ8aIhRvT 3gOxPlY2Bkz+P6/KARH+OF5+GrXSxskUbYbx223fRhiRDQaPIFHL6rbXvKn3HmdDGJiD fK12H6RiUHTt2CK7/KgBDRz4ekkm+pXJRbO/BWjIk69ySN15oA0K55LqQnMq1MSnujc9 dv/4rJQTALRDgB142VGAe5+Exftp8P6wL6ckWgWU4cCFKiLcPWIgj76X5UzOwMYAxNhH tE1cnPP5Du6jul2s/tsiF3kZKMpONVrzHOeUTsTbmq/5aEIVNh22W/ZUb9C9mIW8nSxm br6w== 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 k22si29232920pgl.29.2018.11.24.00.15.49; Sat, 24 Nov 2018 00:16:04 -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; 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 S2502747AbeKWUK0 (ORCPT + 99 others); Fri, 23 Nov 2018 15:10:26 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49293 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390162AbeKWUKZ (ORCPT ); Fri, 23 Nov 2018 15:10:25 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id E7A7620F84; Fri, 23 Nov 2018 10:26:57 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 5993F20DDE; Fri, 23 Nov 2018 10:26:31 +0100 (CET) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter , Paul Kocialkowski Subject: [PATCH v2 15/43] drm/sun4i: Rename sun4i_backend_layer_formats to sun4i_layer_formats Date: Fri, 23 Nov 2018 10:24:47 +0100 Message-Id: <20181123092515.2511-16-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> 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 Since more formats can be supported by the frontend, rename the variable listing the layer formats to avoid suggesting that the backend itself supports all the listed formats. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_layer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 50bb16566f03..c3368b17e5f1 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -127,7 +127,7 @@ static const struct drm_plane_funcs sun4i_backend_layer_funcs = { .update_plane = drm_atomic_helper_update_plane, }; -static const uint32_t sun4i_backend_layer_formats[] = { +static const uint32_t sun4i_layer_formats[] = { DRM_FORMAT_ARGB8888, DRM_FORMAT_ARGB4444, DRM_FORMAT_ARGB1555, @@ -156,8 +156,8 @@ static struct sun4i_layer *sun4i_layer_init_one(struct drm_device *drm, /* possible crtcs are set later */ ret = drm_universal_plane_init(drm, &layer->plane, 0, &sun4i_backend_layer_funcs, - sun4i_backend_layer_formats, - ARRAY_SIZE(sun4i_backend_layer_formats), + sun4i_layer_formats, + ARRAY_SIZE(sun4i_layer_formats), NULL, type, NULL); if (ret) { dev_err(drm->dev, "Couldn't initialize layer\n"); -- 2.19.1