Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2310599pxu; Mon, 7 Dec 2020 03:20:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVtoRJwF4/g2tRYGXUIlAzKbEyClPvxyzJxspqB/iOSI//bg8+K4nanP3+4ZBc2uYpluMR X-Received: by 2002:aa7:d3cc:: with SMTP id o12mr20135951edr.235.1607340009235; Mon, 07 Dec 2020 03:20:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607340009; cv=none; d=google.com; s=arc-20160816; b=z7BNPnI3hmpbGxG69ZNtgFqBX81Wef7QC8UchlHqcY1BWKGlK6ui1zMtf45LDqRbaq SPQO1BCipqWWCT+gN53ixhd2ZoV3wLos5N+DpI4cm4V9O2diMgC5+C0nyqWBe+9YuLCq JcgZL2F/ApQBvX1GRyNxOGDpkZk9/LaGyxZZs5PFIiPkvlMmedAmz7oAMRqBc3NTuA69 UpYm+u5elW8H+lsh275XM2Qa0yoZDUco87+iyySuQJ8GfDOsdXoWTqWU6kZDR6jlPYkg kZj6Ge+gmGjRkemUCnPD4O9BcZC8XJM2PC2CVkSdYy1XC36AM3IfO0EtvsjzXVWsnVG6 A7eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=4M+xEpx4n4WnJw3onj1byPQytNin1T0UzFRHSm310bw=; b=LESYlmQhFCu7qa6i8HFguN495SmNcG1jncLdnlRsbX3rPagU2/BZiB0qnJIyCs2dYI /+qqzeo4NRFIV+quvnUBxno9/SyY9MSetCKaJ+5NMlz3BSrRGoghx1e9w6UjA0pJMZ4p GUOC2ktYG7dZDkqI/k/eAQvgTdR41KIP+EKEzqhcSjFjJp5jg/GaHHgl/qT7rlK3c6kR pwqtN3FdwkUHaZ+x3gRhpmH4Of1PNDFcakHEfUPTdOS/TnjhYj61W3NL3ykLW8gsUiol wEegQkbjya9sgWznHcSBInBmyKgdfPFpFEvSwpvkmNCJE0K+xY5KBv4SuOql7wO8wzzV Dpcg== 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 a11si6306179ejc.716.2020.12.07.03.19.46; Mon, 07 Dec 2020 03:20:09 -0800 (PST) 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 S1726734AbgLGLQw (ORCPT + 99 others); Mon, 7 Dec 2020 06:16:52 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8960 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbgLGLQv (ORCPT ); Mon, 7 Dec 2020 06:16:51 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CqLMj0ppDzhnxR; Mon, 7 Dec 2020 19:15:45 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 19:16:03 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon v2 0/2] Code refactoring Date: Mon, 7 Dec 2020 19:16:16 +0800 Message-ID: <1607339778-20460-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org patch #1 is used drmm_mode_config_init() to do code refactoring. patch #2 is deleted unused variable ‘priv’ to avoid warning. Changes since v1: patch #1 is removed the unused structure member variable mode_config_initialized. Tian Tao (2): drm/hisilicon: Use managed mode-config init drm/hisilicon: Delete unused local parameters drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 19 ++++--------------- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 1 - 2 files changed, 4 insertions(+), 16 deletions(-) -- 2.7.4