diff options
author | jianlong.huang <jianlong.huang@starfivetech.com> | 2022-06-27 04:25:38 +0300 |
---|---|---|
committer | jianlong.huang <jianlong.huang@starfivetech.com> | 2022-06-27 04:25:38 +0300 |
commit | de38fca210739159b8ea94e03f46e718b6ce4bf7 (patch) | |
tree | 78bfedcb5047375d83851b97b01598008957aff9 | |
parent | 87c5a26057fdbc77da7019e672cd28a263bb33f8 (diff) | |
parent | 618b1e05cbbbe618a2ec9b94ee302ba507d32e6a (diff) | |
download | linux-JH7100_VisionFive_OH_dev.tar.xz |
Merge branch 'CR_1174_V4L2_changhuang.liang' into 'JH7100_VisionFive_OH_dev'VF_SDK_510_V1.2.1JH7100_VisionFive_OH_dev
v4l2: media device add some mesg info
See merge request jh7100/linux!44
-rw-r--r-- | drivers/media/platform/starfive/stfcamss.c | 5 |
1 files 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); |