Message ID | 20230719075056.72178-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2279818vqt; Wed, 19 Jul 2023 01:13:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlG56JOPkEnXQkkAptVVN5vaDeI9tGxelvfsml2Is82rtsH69xiqGGrZhIB72fSQ/YrAZkQR X-Received: by 2002:aa7:88cf:0:b0:681:d247:8987 with SMTP id k15-20020aa788cf000000b00681d2478987mr17446336pff.17.1689754431018; Wed, 19 Jul 2023 01:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689754431; cv=none; d=google.com; s=arc-20160816; b=AacmGPfrfGyM3909EIPq6UzLej2p+/Rs49Pp+23iqficjcTJ+oKxCBpKqc2L0JRvfT LR/v1GS/4yEp0wLg/l34SjFBof17985YEWWuEFqjpvsYZelH0HvePxx9CSAlL/8YP1Ta YyCcEAgwTAw4bhGUHgnk9fP2DSJN1d7a9H6G8IDzlN8cbbdgZDp6nHOO7Kt6TJYc4BXd ODzcEHz8dn5OsWEAxX+EBvx7W7DSmyV43lIkxu79aY4B7oQnsrm4zq6ikHVAuBW+mGTv 8vqbV82Bpix9XYabD1JE311pKIvkBh0YFHNxsF455I4nbZNwUZzYYBgRow0f94hHpb/N YYVA== 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:cc:to:from:dkim-signature; bh=uxzWsRaU5XAlggThHiidDD19i0Dq48k73iIM3XmpNfA=; fh=NKnLsaTUs6DGQa/OThi18WPpEgJ637Y16FMWW8s0AeQ=; b=q3NA70tkr2GkW2hnJK1odSMoQcLd0vPoq4et7vGYVuf+dSAWnHvqO3BPRyAVmTYy87 lFzrpyr0HASl4xkWDoGYVlCr5aYlowUBTimsAioGisl1cEgeYtBTjg8xuJ4jH28hmg5V t/NGUw+a93S9Geidda/hOsTGflGgpodZJsh+gyfagbagU1rf5OyA8c/WZXZP4zGPWZOX 2cAbKiWAi0/Gw/9HrN92NznSHdt3sTt3Xv8JMijsi8wk39Qhg2f0Z/5dtDIzN+0RtVVc PGjMEpGG055j/uW7bKtNDrhlgb7c8197MYhDSwesHSj0ypwImh8YEb9xJ20XfvOxpP/5 TneA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mUwEqZO8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a056a0024c300b0065dba8cc3a6si3177744pfv.376.2023.07.19.01.13.37; Wed, 19 Jul 2023 01:13:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mUwEqZO8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjGSHvK (ORCPT <rfc822;chrisben.tianve@gmail.com> + 99 others); Wed, 19 Jul 2023 03:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjGSHvI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Jul 2023 03:51:08 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EC9CE47 for <linux-kernel@vger.kernel.org>; Wed, 19 Jul 2023 00:51:08 -0700 (PDT) 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 <angelogioacchino.delregno@collabora.com> To: chunkuang.hu@kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, fshao@chromium.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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771835942627026392 X-GMAIL-MSGID: 1771835942627026392 |
Series |
drm/mediatek: Small mtk-dpi cleanups
|
|
Message
AngeloGioacchino Del Regno
July 19, 2023, 7:50 a.m. UTC
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(-)