From patchwork Wed Jul 19 07:50:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13318491 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 5A77CC001B0 for ; Wed, 19 Jul 2023 07:51:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 906B410E40F; Wed, 19 Jul 2023 07:51:10 +0000 (UTC) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by gabe.freedesktop.org (Postfix) with ESMTPS id F123E10E40B for ; Wed, 19 Jul 2023 07:51:07 +0000 (UTC) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 12288660704A; Wed, 19 Jul 2023 08:51:06 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689753066; bh=GHT1o/URgGKhDhU+jS7uxQ4L+jklUoeHFxxBe3xYfCg=; h=From:To:Cc:Subject:Date:From; b=mUwEqZO8afN7oGV9HJ7vHhe3METlJgBKFXslTZBFSkXZGigNLULQQfgKV1KXaUTmm RhGqWPnexSBUCIDKRYYzs9DjW+ptKqCddqymnBNurKVUZ2Ieq9gDbnSFmgq8WCmno5 9VkP+lpzcNcHu4fqBdCaC/gTVLB1CNJh86NofZdIHbJ6w4lWIe13OhesqHTuUBLqTC H+O4EVEuZV5bnp5cetI10eQ5+p6/TKy3iuMr8F/ILo2uBQWvtqU+LZ1SNIW9EiJL3A KcpPtEgmjgaNymKJCJ1dmIg1xRjRCl/MjmrG0q58KIyQjsV1FHxan6UTbFBbZTS20V gFMkd5c6KWk4g== From: AngeloGioacchino Del Regno To: chunkuang.hu@kernel.org Subject: [PATCH v2 0/6] drm/mediatek: Small mtk-dpi cleanups Date: Wed, 19 Jul 2023 09:50:50 +0200 Message-Id: <20230719075056.72178-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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: fshao@chromium.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, kernel@collabora.com, linux-arm-kernel@lists.infradead.org, angelogioacchino.delregno@collabora.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Changes in v2: - Removed drm_bridge_remove() call in patch 1 - Added dev_err_probe print to devm_drm_of_get_bridge() call error handling - Switched to devm_platform_ioremap_resource() to remove the useless pointer to struct resource in probe function - Added a commit to compress struct of_device_id entries - Added a commit to switch to .remove_new() callback This is a small cleanup of the mtk-dpi driver, switching it to devm variants where possible and where it made sense, and reducing lines while retaining and improving human readability. AngeloGioacchino Del Regno (6): drm/mediatek: mtk_dpi: Simplify with devm_drm_bridge_add() drm/mediatek: mtk_dpi: Simplify with dev_err_probe() drm/mediatek: mtk_dpi: Switch to devm_drm_of_get_bridge() drm/mediatek: mtk_dpi: Switch to .remove_new() void callback drm/mediatek: mtk_dpi: Use devm_platform_ioremap_resource() drm/mediatek: mtk_dpi: Compress struct of_device_id entries drivers/gpu/drm/mediatek/mtk_dpi.c | 100 +++++++++-------------------- 1 file changed, 32 insertions(+), 68 deletions(-)