VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   29 Branches   45 Tags
author: jianlong.huang <jianlong.huang@starfivetech.com> 2022-06-27 01:25:38 +0000 committer: jianlong.huang <jianlong.huang@starfivetech.com> 2022-06-27 01:25:38 +0000 commit: de38fca210739159b8ea94e03f46e718b6ce4bf7 parent: 87c5a26057fdbc77da7019e672cd28a263bb33f8
Commit Summary:
Merge branch 'CR_1174_V4L2_changhuang.liang' into 'JH7100_VisionFive_OH_dev'
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/drivers/media/platform/starfive/stfcamss.c b/drivers/media/platform/starfive/stfcamss.c
index c59a98393ebb..b42a1a099ded 100644
--- a/drivers/media/platform/starfive/stfcamss.c
+++ b/drivers/media/platform/starfive/stfcamss.c
@@ -1183,6 +1183,11 @@ static int stfcamss_probe(struct platform_device *pdev)
 	stfcamss->media_dev.dev = stfcamss->dev;
 	strscpy(stfcamss->media_dev.model, "Starfive Camera Subsystem",
 		sizeof(stfcamss->media_dev.model));
+	strscpy(stfcamss->media_dev.serial, "0123456789ABCDEF",
+		sizeof(stfcamss->media_dev.serial));
+	snprintf(stfcamss->media_dev.bus_info, sizeof(stfcamss->media_dev.bus_info),
+			"%s-%s", dev->bus->name, pdev->name);
+	stfcamss->media_dev.hw_revision = 0x01;
 	stfcamss->media_dev.ops = &stfcamss_media_ops;
 	media_device_init(&stfcamss->media_dev);