Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6399775ybf; Thu, 5 Mar 2020 20:02:15 -0800 (PST) X-Google-Smtp-Source: ADFU+vsXXD0Ar1FBK/wcRe6TGCkTG62Qt3sxfCRF/gMmljaBobi5QwWc6ANl6FsLhdCq/hSW+uKI X-Received: by 2002:a9d:2c6a:: with SMTP id f97mr915555otb.254.1583467335054; Thu, 05 Mar 2020 20:02:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583467335; cv=none; d=google.com; s=arc-20160816; b=IB0u+A/hF79RXzzMDmGA81c9W2tim5eojaadRegO4t3YhBS+EW1LPVyBdmKy7PHmsZ dOxqWVfNdRs6lZ5n3ZQb0Di6qEP+39/YXdoqgOwZgFGb6CUsA59CguK3miguqhyr7lCD q6WlCg6yk1ebpOcSDiCo21L1Bsi5IocEWUqYpWw6mBHy9fmvCos/+v72JXB9xAHkpUoy JyNk6SZCsrhJwQE+oiO9/P05Pz4Bd8FLqvp9lSxLUhUmNzWze/DAvILVTchVxWW38lJr PrMsxSTzl3lQRPDopXazQI87RVD/GLFnGxxgj5IHvdMJrPW7mR5eou8Cixw//TkCOcvG W/Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=obioIKINl75JJ8B9pzxUsLfYtUGRcauy/doRDzIFRWc=; b=j1S02HJXfsk4SKcEpKPhfdrXEPYmeyZCtnU3mWnm3OATS73A6y3vZtVFaeyU63FK5B hFwyU/aOoKbj33CFTQxmp9MNHyOF7Vk5VrJcDeczrR2VY3nzdcLkHIj5Ar3AGSEjxObr m1Yx2KmBmKZ9yWsnHNwPyk/Oe1PpsAgd2blIzL/5Hn8G3XcXiY3gLeVR2vWOHdPE5XLa YXWt/habeyYiFaXCiT783rtp/GUNcgxADxOm6eK57kso0I4oSHC9wfHcIXrGYvgNXXqh UDqSZ8y+XlyVwkAE06boEDlVyzsW8V46yq6hLnL0yaai2H8WSsm0sZPgmJ78N/f3g5pR Z4Ew== 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 u12si650281oiv.13.2020.03.05.20.02.02; Thu, 05 Mar 2020 20:02:15 -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 S1727030AbgCFEAC (ORCPT + 99 others); Thu, 5 Mar 2020 23:00:02 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:3035 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726368AbgCFEAB (ORCPT ); Thu, 5 Mar 2020 23:00:01 -0500 Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id C0E65126F8CD98FD0DC4; Fri, 6 Mar 2020 11:59:58 +0800 (CST) Received: from dggeme712-chm.china.huawei.com (10.1.199.108) by DGGEMM402-HUB.china.huawei.com (10.3.20.210) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 11:59:58 +0800 Received: from dggeme759-chm.china.huawei.com (10.3.19.105) by dggeme712-chm.china.huawei.com (10.1.199.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 6 Mar 2020 11:59:57 +0800 Received: from dggeme759-chm.china.huawei.com ([10.7.64.73]) by dggeme759-chm.china.huawei.com ([10.7.64.73]) with mapi id 15.01.1713.004; Fri, 6 Mar 2020 11:59:58 +0800 From: "tiantao (H)" To: "tiantao (H)" , "Chenfeng (puck)" , "airlied@linux.ie" , "daniel@ffwll.ch" , "tzimmermann@suse.de" , "kraxel@redhat.com" , "alexander.deucher@amd.com" , "tglx@linutronix.de" , "dri-devel@lists.freedesktop.org" , "xinliang.liu@linaro.org" , "linux-kernel@vger.kernel.org" CC: Linuxarm Subject: =?gb2312?B?tPC4tDogW1BBVENIXSBkcm0vaGlzaWxpY29uOiBDb2RlIGNsZWFudXAgZm9y?= =?gb2312?B?IGhpYm1jX2Rydl92ZGFj?= Thread-Topic: [PATCH] drm/hisilicon: Code cleanup for hibmc_drv_vdac Thread-Index: AQHV82l0rH8iwdUyDEm3ey4ityyBS6g68H7A Date: Fri, 6 Mar 2020 03:59:58 +0000 Message-ID: References: <1583466184-7060-1-git-send-email-tiantao6@hisilicon.com> <1583466184-7060-3-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1583466184-7060-3-git-send-email-tiantao6@hisilicon.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.57.60.129] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQWxso7oNCg0KCVNvcnJ5o6xwbGVhc2UgaWdub3JlIHRoaXMgcGF0Y2guDQoNCkJlc3QNCg0K LS0tLS3Tyrz+1K28/i0tLS0tDQq3orz+yMs6IExpbnV4YXJtIFttYWlsdG86bGludXhhcm0tYm91 bmNlc0BodWF3ZWkuY29tXSC0+rHtIFRpYW4gVGFvDQq3osvNyrG85DogMjAyMMTqM9TCNsjVIDEx OjQzDQrK1bz+yMs6IENoZW5m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