armbian_build/patch/kernel/archive/sunxi-6.2/patches.megous/media-i2c-ov8858-Use-default-subdev-name.patch
The-going 77674a2b76
Sunxi 6.2 (#4883)
* sunxi-6.2: add megous patches

* sunxi-6.2: add series.conf

* sunxi-6.2: add armbian patches

* sunxi-6.2: mfd: sunxi-ac200: fix error initialization

* sunxi-6.2: Extract patches again after rebasing

---------

Co-authored-by: Igor Pečovnik <igor@armbian.com>
2023-03-03 19:09:22 +01:00

32 lines
1011 B
Diff

From cdfb2af2f629995f5154db6035dc1e0cbbe5f657 Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megi@xff.cz>
Date: Thu, 10 Nov 2022 20:07:12 +0100
Subject: [PATCH 336/391] media: i2c: ov8858: Use default subdev name
This results in names like "ov8858 0000:0001" which are more in line
with mainline conventions. This increases compatibility with future
mainline driver.
Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
drivers/media/i2c/ov8858.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/i2c/ov8858.c b/drivers/media/i2c/ov8858.c
index 5a66cb65a..55d2daa82 100644
--- a/drivers/media/i2c/ov8858.c
+++ b/drivers/media/i2c/ov8858.c
@@ -2933,9 +2933,6 @@ static int ov8858_probe(struct i2c_client *client,
else
facing[0] = 'f';
- snprintf(sd->name, sizeof(sd->name), "m%02d_%s_%s %s",
- ov8858->module_index, facing,
- OV8858_NAME, dev_name(sd->dev));
ret = v4l2_async_register_subdev_sensor(sd);
if (ret) {
dev_err(dev, "v4l2 async register subdev failed\n");
--
2.35.3