media: s5p-mfc: drop static device variable in s5p_mfc_pm.c
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 24 Dec 2023 15:44:14 +0000 (16:44 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Jan 2024 11:16:44 +0000 (12:16 +0100)
commitc007ae835d3fccd5c85dab205918767a17040f2d
treef714c75a83240601ba97616a02da39cd4dbc99bd
parent9e1b5ab82171cb30b79e0fdb75f5d9612c686c53
media: s5p-mfc: drop static device variable in s5p_mfc_pm.c

Change the interface of power management functions in s5p_mfc_pm.c to
accept the pointer to S5P MFC device structure. instead of relying on
file-scope static variable.  This makes code easier to read and modify
in case more devices are added.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Aakarsh Jain <aakarsh.jain@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_ctrl.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_dec.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_opr_v5.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_opr_v6.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.h