soc: mediatek: cmdq: Add inline functions for !CONFIG_MTK_CMDQ
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 22 Feb 2023 09:42:52 +0000 (10:42 +0100)
committerMatthias Brugger <matthias.bgg@gmail.com>
Sun, 2 Apr 2023 16:52:03 +0000 (18:52 +0200)
commiteb0d8623b9b805cbcab87620a363292552c19359
treecc141a8e76afdd16d25c662a88e94864a82100e7
parent1fccd1ef65b2b100b53b534894366f575b390e70
soc: mediatek: cmdq: Add inline functions for !CONFIG_MTK_CMDQ

In preparation for a cleanup of ifdef instances of IS_REACHABLE() for
the CONFIG_MTK_CMDQ configuration option, add inline functions that
will either return a failure or, for void functions, do nothing.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20230222094253.23678-9-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
include/linux/soc/mediatek/mtk-cmdq.h