bcm27xx: import latest patches from the RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0818-media-i2c-imx290-fix-the-order-of-the-args-in-SET_RU.patch
1 From 8c3334dd193798648c329779ce7a3c6ddec7944e Mon Sep 17 00:00:00 2001
2 From: Andrey Konovalov <andrey.konovalov@linaro.org>
3 Date: Fri, 12 Jun 2020 15:53:47 +0200
4 Subject: [PATCH] media: i2c: imx290: fix the order of the args in
5 SET_RUNTIME_PM_OPS()
6
7 Commit 8d2d1bedb1b9af3e0c039a4444858da7b6da71f8 upstream.
8
9 The macro is defined as SET_RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn),
10 so imx290_power_off must be the 1st arg, and imx290_power_on the 2nd.
11
12 Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
13 Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
14 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
15 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
16 ---
17 drivers/media/i2c/imx290.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/media/i2c/imx290.c
21 +++ b/drivers/media/i2c/imx290.c
22 @@ -648,7 +648,7 @@ static int imx290_power_off(struct devic
23 }
24
25 static const struct dev_pm_ops imx290_pm_ops = {
26 - SET_RUNTIME_PM_OPS(imx290_power_on, imx290_power_off, NULL)
27 + SET_RUNTIME_PM_OPS(imx290_power_off, imx290_power_on, NULL)
28 };
29
30 static const struct v4l2_subdev_video_ops imx290_video_ops = {