]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: mtk_hdmi: Remove ifdef for CONFIG_PM_SLEEP
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 17 Feb 2025 15:48:23 +0000 (16:48 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 20 Feb 2025 14:13:13 +0000 (14:13 +0000)
commit900f5b37a93d19820398a2cb9e5bb36f506344bf
tree26c59fe8602765557da70c57498f9113a3bafdc2
parenteb8779b2641374c140c7e55f251900d71837759f
drm/mediatek: mtk_hdmi: Remove ifdef for CONFIG_PM_SLEEP

Since the SIMPLE_DEV_PM_OPS macro and the pm pointer are anyway
defined when CONFIG_PM_SLEEP is not set, remove the ifdef for it
and indicate that the mtk_hdmi_{remove,suspend} functions may be
unused (as they are, in case PM support is not built-in).

While at it, to improve readability, also compress the
SIMPLE_DEV_PM_OPS declaration as it even fits in less
than 80 columns.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20250217154836.108895-31-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c