|
@@ -432,7 +432,16 @@ int pld_snoc_get_soc_info(struct device *dev, struct pld_soc_info *info)
|
|
|
if (0 != ret)
|
|
|
return ret;
|
|
|
|
|
|
- memcpy(info, &icnss_info, sizeof(*info));
|
|
|
+ info->v_addr = icnss_info.v_addr;
|
|
|
+ info->p_addr = icnss_info.p_addr;
|
|
|
+ info->chip_id = icnss_info.chip_id;
|
|
|
+ info->chip_family = icnss_info.chip_family;
|
|
|
+ info->board_id = icnss_info.board_id;
|
|
|
+ info->soc_id = icnss_info.soc_id;
|
|
|
+ info->fw_version = icnss_info.fw_version;
|
|
|
+ strlcpy(info->fw_build_timestamp, icnss_info.fw_build_timestamp,
|
|
|
+ sizeof(info->fw_build_timestamp));
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
#else
|
|
@@ -448,7 +457,16 @@ int pld_snoc_get_soc_info(struct device *dev, struct pld_soc_info *info)
|
|
|
if (0 != ret)
|
|
|
return ret;
|
|
|
|
|
|
- memcpy(info, &icnss_info, sizeof(*info));
|
|
|
+ info->v_addr = icnss_info.v_addr;
|
|
|
+ info->p_addr = icnss_info.p_addr;
|
|
|
+ info->chip_id = icnss_info.chip_id;
|
|
|
+ info->chip_family = icnss_info.chip_family;
|
|
|
+ info->board_id = icnss_info.board_id;
|
|
|
+ info->soc_id = icnss_info.soc_id;
|
|
|
+ info->fw_version = icnss_info.fw_version;
|
|
|
+ strlcpy(info->fw_build_timestamp, icnss_info.fw_build_timestamp,
|
|
|
+ sizeof(info->fw_build_timestamp));
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
#endif
|