From patchwork Thu Sep 29 01:55:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Can X-Patchwork-Id: 12993388 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE8ECC32771 for ; Thu, 29 Sep 2022 01:56:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 127F810E93F; Thu, 29 Sep 2022 01:56:51 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by gabe.freedesktop.org (Postfix) with ESMTPS id DA07810E93F for ; Thu, 29 Sep 2022 01:56:46 +0000 (UTC) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MdGZg41P5z1P6lS; Thu, 29 Sep 2022 09:52:27 +0800 (CST) Received: from huawei.com (10.175.112.208) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 29 Sep 2022 09:56:44 +0800 From: Yuan Can To: , , , , , Subject: [PATCH v2 0/2] drm/panel: Use dev_err_probe() to simplify code Date: Thu, 29 Sep 2022 01:55:01 +0000 Message-ID: <20220929015503.17301-1-yuancan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.112.208] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yuancan@huawei.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This series contains two patchs simplify the error handling in probe function by switching from dev_err() to dev_err_probe(). --- changes in v2: - simplify the same case in panel_edp_probe - add Reviewed-by from Douglas Anderson Yuan Can (2): drm/panel: panel-edp: Use dev_err_probe() to simplify code drm/panel: simple: Use dev_err_probe() to simplify code drivers/gpu/drm/panel/panel-edp.c | 22 ++++++---------------- drivers/gpu/drm/panel/panel-simple.c | 9 +++------ 2 files changed, 9 insertions(+), 22 deletions(-)