Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2247234pxu; Mon, 7 Dec 2020 01:07:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzrLz0+2LVgaKuSDk+Bxpo/lNeQboBSrIA9NbneSW4RwoGsx/UUBsvEYDQlI6AmAXOZQ9Y X-Received: by 2002:a17:906:8617:: with SMTP id o23mr17998007ejx.274.1607332051416; Mon, 07 Dec 2020 01:07:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607332051; cv=none; d=google.com; s=arc-20160816; b=vXt/mnwPNFZeFc+l5bQUanBEilF9yJm0X79LhwCuODiVd8jnfOcUeQ9pWCueEI7GcF SfRDJjgo8by+q4H2Py9j0N6CeIL2Z8U/qsPb2jVwigpSQaNT4daJO4Ua+CBcMf8oWScP 1udKnx6ty50ciSWz5b7ttKdedbIscU88bv0ezrQ2VGFYvR5IkOVPuC3jQc1/yZSXvsIh iIbHewD29XxmA+LhT340GXcwTpeXgVBkMNGcnfVaTkj3l3B54RC/mmQOF8Q+9L+xRRwQ UJTk3lkb6ZXgXRyYPLgRaffZQI9tgUWVfVeTK2LIlF3niW8tKf4pJZSSAV8yd7oFbGTG zDlg== 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=ngFq78wPhXiPJ3G2IMOsS4/rTgB6D92F1p+2hG8q5bA=; b=LxIjMpguMnUn8Pl5fsUgcvAdYqCHFexfZryw+4pQD3m92z2LTJ0AtTt4NDou+hDT94 v/fAgC/yKsaw7Xh8h/xByF1Fuk9anuYTLwYEoNzkATUtC0J/h3XAGjrrtpBHTlrYalBL LMttF5of6IEm3LHKZUbJe1EvSAvsY+dymR9JeMVwwc0WT8kPc8tD87DGrNVbS+fXATWO 3uvujczpTYH84h7EO4XTjDzYFjiXkRvnL0FBfGqXRlEPZGgz8vnNVG+B2w73y+jB5qEr sKw7oOlamtWM3knIBS50g3n+cVr7tQPoWlEtkiyCFvDjYDdRsDBevUWMGAOdphLlELcx lEZw== 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 t15si6833563edq.100.2020.12.07.01.07.08; Mon, 07 Dec 2020 01:07:31 -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 S1726686AbgLGJFe (ORCPT + 99 others); Mon, 7 Dec 2020 04:05:34 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9021 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbgLGJFc (ORCPT ); Mon, 7 Dec 2020 04:05:32 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CqHS71CKwzhnj3; Mon, 7 Dec 2020 17:04:23 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 17:04:51 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH drm/hisilicon v2 0/2] Code refactoring Date: Mon, 7 Dec 2020 17:05:04 +0800 Message-ID: <1607331906-19005-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: Remove 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