Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1594629rdb; Wed, 31 Jan 2024 03:37:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/r0RIuR5eoiY52eP2leULTsVCk8aHd6rkc+4J0xFk3x6nD/ZkMOi0pybFcZ2Kyk70iS8r X-Received: by 2002:a17:906:11c4:b0:a31:64d2:d0c2 with SMTP id o4-20020a17090611c400b00a3164d2d0c2mr1004277eja.10.1706701030312; Wed, 31 Jan 2024 03:37:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706701030; cv=pass; d=google.com; s=arc-20160816; b=G84FK7bHAOH6kY0mOIIBh29o8P0TchwnKG8O7kwA74zEwWAYqF2IJgPXV+NGI1CI+m 0+h/t1u3E0tNLQ/goVhLCm/gP0Z+pH2WXd3LyecTfO/xfebnjCDB+gpNReR23vZaGBC+ Zg+57uI1yDci7wDk3jXYOgAVyYcQjtvhUJMe6RPyQSlfJ4jZzM5b8LuZ+zwnAeBDs77K 3GY94tyf21JbU4SMr3cqsGbuNH1QZF2G86Jb5O2suk+MZpJhg076DopAzIadEW2RaHdw Sr0gNDHU8UYmfKirQx02eB6UBtzFzD/FCEWD8fnPf5m2nCeoX0T0uhTCwjaDTTYhgxjR 96lw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=sPA42pXp8NtVnnlFSEBRms2OQR05WnF2EUCSCLcM5dU=; fh=sSv5YoOUw4AHkv8RVcNFCIvjtEk8oe72jUYaDErxwZw=; b=higJoyDzqec9rxS+Y4j1u+D8T7XMc8pJ0ytLCwtBhzIbvWVDkqerpHZa8PwxiPgz7B YKYx6dGrTU6m5+CY4FbbRKTOVQUireHiQhcs/LfuF0FhV0bRbaQqYHB1mkrfWzEd2wXB OiCjteyvu3f07AmUGdhjh3JBq8g8qKRcn+Y1RMa3pGZbyOXx5P/inAV2WvOim9H8M+I5 PGrgt84LVE/WaLx5kxwme8MDFQaIQUh4DNJiuCrJ97eQzE8SGVD18+Zzof/Nb4JvnWX7 /sVGhqCjGF905uHX+m85pMU/UmBJFRApSvAhRVKPopSKY4Oex3XqM/stgtMrePP9pgZw gt2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BJNZYRqD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-46361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCVJY/FRGKVxWhTm7hevmBA23VpsjQ2jbjeKEyAtDUynpHv7DJWV/l0Ngzq3ohPKbJpFAdSgvxcr0KHOGJzHHJHnslcuRjfjCFZTk0pjVQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cd15-20020a170906b34f00b00a2b23f08c5asi5393269ejb.808.2024.01.31.03.37.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 03:37:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BJNZYRqD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-46361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D21021F2CA55 for ; Wed, 31 Jan 2024 11:36:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA36A7AE75; Wed, 31 Jan 2024 11:34:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="BJNZYRqD" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D53779DA6 for ; Wed, 31 Jan 2024 11:34:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706700890; cv=none; b=T7rbZ6l1DHPjycgKcJaAYgaTj0A4e/+SG4S83s6HTykEWtYWXT8a3w1KuX6cpD8cNnE94jbbQ2DwXGKwqKKTNCimi8GfgvqKd16D3WXUJN17cW3nBOkp+wC+VWyGrUQvYLJwvEsArOezdC8zKdV/5WxOQcZPKmXvMsn0CIaM5CU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706700890; c=relaxed/simple; bh=Hg07SeM/KNvTXW3q5I4wEr/MnhDPUSRitzdghnQDomk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sqfDkSM9gVdOqvfDBgsl87ZCnmTbUFXOjWT0BavAvhZqsQfN8zcGw2T7Fyw9VVzAgTuIHLIFbEVO8qIlj0TCNkZe14igtl1hCDcaMhVBOEmxZxAt5VmzPCleHhNNLQBARtkJkQOCkCioMzPSvaAw49ZynRZLZ2W08I3equYwF+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=BJNZYRqD; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706700887; bh=Hg07SeM/KNvTXW3q5I4wEr/MnhDPUSRitzdghnQDomk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BJNZYRqDrNfsvWK6R+0inYUi0KUg9dXOPzwWZb3ph7d+tA7t2m0w2xXq068ZtW1PJ CdnKB9u7cu5w4lkJEYgDgKA2coWYkjVS5wccbcQ3JiuitoHDJ/XsHoJnXuIK+gXoR9 tRHB1WIfMqwz0WgTGHsbQDlAxwwqzEm4mTnD/HjYXrhB/Oz6nW7FlxdSddGbYZZqmO 3YIvd1wkUSP5JWZIFjWTc0FESVqPNURcnjTEVJVEbNH+S2+gXfn7c8fTtt9Dh5q2C2 Uy3HjdAu70DF20x2cJoaaHLtMB7v+qGgxwnNhQ9i/TW0LKzGl3mNhMKxHL+NFi7bQb pTkNV6l1zW+zw== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (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 madrid.collaboradmins.com (Postfix) with ESMTPSA id 13CBC378208C; Wed, 31 Jan 2024 11:34:47 +0000 (UTC) From: AngeloGioacchino Del Regno To: chunkuang.hu@kernel.org Cc: fshao@chromium.org, 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 Subject: [PATCH v3 7/7] drm/mediatek: dsi: Compress of_device_id entries and add sentinel Date: Wed, 31 Jan 2024 12:34:34 +0100 Message-ID: <20240131113434.241929-8-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240131113434.241929-1-angelogioacchino.delregno@collabora.com> References: <20240131113434.241929-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit All entries fit in 82 columns, which is acceptable: compress all of the mtk_dsi_of_match[] entries to a single line for each. While at it, also add the usual sentinel comment to the last entry. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_dsi.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 5a0f078987d3..2c482742183e 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1204,17 +1204,12 @@ static const struct mtk_dsi_driver_data mt8188_dsi_driver_data = { }; static const struct of_device_id mtk_dsi_of_match[] = { - { .compatible = "mediatek,mt2701-dsi", - .data = &mt2701_dsi_driver_data }, - { .compatible = "mediatek,mt8173-dsi", - .data = &mt8173_dsi_driver_data }, - { .compatible = "mediatek,mt8183-dsi", - .data = &mt8183_dsi_driver_data }, - { .compatible = "mediatek,mt8186-dsi", - .data = &mt8186_dsi_driver_data }, - { .compatible = "mediatek,mt8188-dsi", - .data = &mt8188_dsi_driver_data }, - { }, + { .compatible = "mediatek,mt2701-dsi", .data = &mt2701_dsi_driver_data }, + { .compatible = "mediatek,mt8173-dsi", .data = &mt8173_dsi_driver_data }, + { .compatible = "mediatek,mt8183-dsi", .data = &mt8183_dsi_driver_data }, + { .compatible = "mediatek,mt8186-dsi", .data = &mt8186_dsi_driver_data }, + { .compatible = "mediatek,mt8188-dsi", .data = &mt8188_dsi_driver_data }, + { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, mtk_dsi_of_match); -- 2.43.0