Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1696744pxa; Sun, 2 Aug 2020 17:41:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3WjPNymqGCwMZ4kQlpQZZoeCsjjQy35y0jq6fmE1YMx96auC12c6qd57g2Pdme4aYgoZA X-Received: by 2002:a17:906:22c1:: with SMTP id q1mr14053444eja.443.1596415279456; Sun, 02 Aug 2020 17:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596415279; cv=none; d=google.com; s=arc-20160816; b=jNbnNSPT7+H6RUT8Y5adzyD9DehqvAC0NUHa8eSkbIOOHsF+PdVC68zthUah59nZT8 UXeVInbfWrcQ/QP2dBUbHmxA97ZojhVWcnjKPG+T99jowBs3MZcXwSgaSoqVWfY1c5Us /wlHZes6t6ZsuJz7GmZQMUOFvfvBhWStXm7tUUn3aVBIc3GIiJwW/+SjBW03H/Gq4FaO By8t1ESJ4Bw2WlPk2LZZ65itXlVJH2Vj9HfHtkHgCBdwQ+StUDQbY3zmtCJ/sLJhfEH+ H64OHtsCZ9Ft5Kh9TJrbZkCWCr4m+D6UEc9oLufOg2491is4AeOgSSbQEctHzRtj46SP DQCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=JTPKwQooyQqU+2lDpgIFb2awrMooNk5frPhkQmuv9jw=; b=MLkpBYHsASe7ecb3Ub6kcgIEMb0pSGov16SANZwq0709KJZhA5hd8McJwBk5lIpMFr 00LbjMWYSm6m89Np8Bn7g7DK8LXu38KVZu//urTzFaaahNZ7P/MTFlPcnhEUy14eUVs8 IOYtWAv2NL/YMMCY8c++H0VHvfRiPU8BGc4MGiA/LEMi2v9tTcLwrz6cp1ME7LFj/XTU Tf7RuPaTss/HGX4wrsTIQ+aU8ma7vDm9/1wXgKxyASA651CtrzyRbqVqju8TYm/eeuuI wmVEFCB05OZRp/XkkVGqQc1qQprnfshk0JOksRJKrzbTMuN5uC55K7t1MplZZMWhAwxH YQeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si4358447ejz.135.2020.08.02.17.40.57; Sun, 02 Aug 2020 17:41:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727920AbgHCAko (ORCPT + 99 others); Sun, 2 Aug 2020 20:40:44 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9314 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727087AbgHCAko (ORCPT ); Sun, 2 Aug 2020 20:40:44 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id AE693715285F6204449D; Mon, 3 Aug 2020 08:40:38 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 3 Aug 2020 08:40:30 +0800 From: Tian Tao To: , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 3/3] drm/hisilicon: Rename variables to represent the correct meaning Date: Mon, 3 Aug 2020 08:38:34 +0800 Message-ID: <1596415114-21175-4-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596415114-21175-1-git-send-email-tiantao6@hisilicon.com> References: <1596415114-21175-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename plane to primary_plane in the structure hibmc_drm_private. so it's clear which plane it represents. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c index af24c72..d9062a3 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c @@ -504,7 +504,7 @@ int hibmc_de_init(struct hibmc_drm_private *priv) { struct drm_device *dev = priv->dev; struct drm_crtc *crtc = &priv->crtc; - struct drm_plane *plane = &priv->plane; + struct drm_plane *plane = &priv->primary_plane; int ret; ret = drm_universal_plane_init(dev, plane, 1, &hibmc_plane_funcs, diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h index 91ef15c..197485e 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h @@ -28,7 +28,7 @@ struct hibmc_drm_private { /* drm */ struct drm_device *dev; - struct drm_plane plane; + struct drm_plane primary_plane; struct drm_crtc crtc; struct drm_encoder encoder; struct drm_connector connector; -- 2.7.4