Message ID | 20230726082245.550929-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp262047vqo; Wed, 26 Jul 2023 01:49:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUf49GvlG5iTf5Cja4jfiAxeNwvl4GDrsASeOwzJUsXMlxW+gk0e1U/O+hPfrZpMNjCJIG X-Received: by 2002:a05:6a00:9a0:b0:668:8705:57dd with SMTP id u32-20020a056a0009a000b00668870557ddmr1370907pfg.28.1690361361742; Wed, 26 Jul 2023 01:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690361361; cv=none; d=google.com; s=arc-20160816; b=hgjGZcwm0a2W1xDlyFKyZnu1E+OIX2icIlLQA3HMO45JkoQW7HNFPrt2tpxSV877AR fm75HrwIt7bFWfyuIM/SZfpiZhzkE/fMgQYJ/LAPtmTzkzES2N8gTMtRTetekk4TO6mY R4IquuiwZbN6K4x0coLg/dASWYUvT13M4DtaBHuB5G5cWTEzG/5gHOZz3XM2jhdadGY5 2EggHVyZxSESfM1oQjcqUkfkR9wx0Ig9YnP+lnTL9hgFHXfawHAnVpTLKaayBJ6Esxt1 8AWx60r/L616neSYruPygG/dpQ5kun7sNCUFNTtaoWJH/Tj8O0f8Tb1KybO6Zl5sWjM7 /SYA== 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=QLeQpxi8sHi7ql/SHPOFZupRF4A4pXBpX3t3WkR2lEY=; fh=NKnLsaTUs6DGQa/OThi18WPpEgJ637Y16FMWW8s0AeQ=; b=OkYziaGlIzhL+3qUKTJDUw1AmZa8Kd31zCY2pxVSZ3fTI4CHtWiQTrrFYd3xtwLEcg KFc8+0I/qleA9A3RJ4YHcroT9GlgIzH7jKJT2dLqIX7N3hQeMt9C1KmiV2lD2OnY3YHy Xn4IRLT4FnledXOtpWIVYejkMd1BBJfNtuJPD9y9iI9d2J0D/9iAGZEhLH9LfDMJ50fJ f/MJa/sfn8JSsQ7CaAOtRKzfVV3ghY+70SUD59dprgh60Vg+3IQFftj1Erl6EcSMEiX/ ZRJ6DSUpbawXZFhI1sgNI/fuSNlULXUTaSkpJog1tApNGTY2QZTjSNIG52wWRtfLV6lR WvrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=htPJevGv; 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 n4-20020a637204000000b005600a533c7dsi12195405pgc.161.2023.07.26.01.49.08; Wed, 26 Jul 2023 01:49:21 -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=htPJevGv; 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 S233312AbjGZIcz (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 04:32:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233286AbjGZIcb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 04:32:31 -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 164CB6E86 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 01:22:56 -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 1ADB466015A0; Wed, 26 Jul 2023 09:22:54 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690359774; bh=2FI4H4ZuB88bJj5ThgiVFOLbFXbRfR4pQKiai84ySXE=; h=From:To:Cc:Subject:Date:From; b=htPJevGv9woHxVLnVshT+DxXQ5Qw8YdZjOtXszz0ml3btE1K0XA7IPUhfVbs9XjPh QzdxoOiMk4L2UZo17kkxO8JGF7UBJy0rPPkLsOMqzI69EYcJFD+94a1vu2zDqY6fJm rC2oqWJAaH+oHnrBtVzJxlPDLP6Lc5ud5TYMjaEsHX+AOs6Vk9OdXuMjavwthuWx3m tAVNnzjbFvM3wycKbTaxR+Y0jLqSs6rqBZ6c2svDMgUj0wY3TealqIAX/54mOBC/hv C1OcuptPopAWpMFyFlemQ2QSH7WdeY4kxWZZS0vh7xIoMnl7hhVWt3Y7GFmFMrC9P0 dX1l16lkpjqzw== 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 v3 0/6] drm/mediatek: Small mtk-dpi cleanups Date: Wed, 26 Jul 2023 10:22:39 +0200 Message-ID: <20230726082245.550929-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.41.0 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: 1772472355001082993 X-GMAIL-MSGID: 1772472355001082993 |
Series |
drm/mediatek: Small mtk-dpi cleanups
|
|
Message
AngeloGioacchino Del Regno
July 26, 2023, 8:22 a.m. UTC
Changes in v3: - Fixed removal of mtk_dpi pointer in mtk_dpi_remove on patch [1/6] instead of patch [3/6]; thanks CK Hu! 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(-)