X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fchunkeey.git;a=blobdiff_plain;f=target%2Flinux%2Fbcm27xx%2Fpatches-5.10%2F950-0296-media-i2c-ov5647-Parse-and-register-properties.patch;fp=target%2Flinux%2Fbcm27xx%2Fpatches-5.10%2F950-0296-media-i2c-ov5647-Parse-and-register-properties.patch;h=0000000000000000000000000000000000000000;hp=10f5512b6a4b37edaf0f3964750acf0294c8e151;hb=d5c4f24b2af991df2ec24df1a3f906049370f59f;hpb=99ad84b6d9727a63f99a16e0b8386747262e3433 diff --git a/target/linux/bcm27xx/patches-5.10/950-0296-media-i2c-ov5647-Parse-and-register-properties.patch b/target/linux/bcm27xx/patches-5.10/950-0296-media-i2c-ov5647-Parse-and-register-properties.patch deleted file mode 100644 index 10f5512b6a..0000000000 --- a/target/linux/bcm27xx/patches-5.10/950-0296-media-i2c-ov5647-Parse-and-register-properties.patch +++ /dev/null @@ -1,49 +0,0 @@ -From 0f0998ed9620f676ee78eb6f606b0b2fa118bf68 Mon Sep 17 00:00:00 2001 -From: Laurent Pinchart -Date: Sat, 4 Jul 2020 01:45:08 +0300 -Subject: [PATCH] media: i2c: ov5647: Parse and register properties - -Parse device properties and register controls for them using the V4L2 -fwnode properties helpers. - -Signed-off-by: Laurent Pinchart ---- - drivers/media/i2c/ov5647.c | 13 ++++++++++++- - 1 file changed, 12 insertions(+), 1 deletion(-) - ---- a/drivers/media/i2c/ov5647.c -+++ b/drivers/media/i2c/ov5647.c -@@ -1501,6 +1501,7 @@ static int ov5647_probe(struct i2c_clien - struct device_node *np = client->dev.of_node; - u32 xclk_freq; - int hblank, exposure_max, exposure_def; -+ struct v4l2_fwnode_device_properties props; - - sensor = devm_kzalloc(dev, sizeof(*sensor), GFP_KERNEL); - if (!sensor) -@@ -1534,7 +1535,7 @@ static int ov5647_probe(struct i2c_clien - mutex_init(&sensor->lock); - - /* Initialise controls. */ -- v4l2_ctrl_handler_init(&sensor->ctrls, 7); -+ v4l2_ctrl_handler_init(&sensor->ctrls, 9); - v4l2_ctrl_new_std(&sensor->ctrls, &ov5647_ctrl_ops, - V4L2_CID_AUTOGAIN, - 0, /* min */ -@@ -1598,6 +1599,16 @@ static int ov5647_probe(struct i2c_clien - __func__, ret); - goto error; - } -+ -+ ret = v4l2_fwnode_device_parse(&client->dev, &props); -+ if (ret) -+ goto error; -+ -+ ret = v4l2_ctrl_new_fwnode_properties(&sensor->ctrls, &ov5647_ctrl_ops, -+ &props); -+ if (ret) -+ goto error; -+ - sensor->sd.ctrl_handler = &sensor->ctrls; - - /* Write out the register set over I2C on stream-on. */