soc: qcom: socinfo: Change offset of image OEM attribute
There is a requirement, for diag command handler, that needs the separator between image variant and image OEM to be shown as part of OEM value in sysfs. So change the relevant offset and size to include this information in image oem sysfs attribute. CRs-Fixed: 1086976 Change-Id: Iae12fa648df17dddd48f3a71e94d06c2c3b03277 Signed-off-by: Imran Khan <kimran@codeaurora.org>
This commit is contained in:
parent
a0b8ac8a28
commit
6199400486
1 changed files with 6 additions and 5 deletions
|
@ -42,8 +42,8 @@
|
|||
#define SMEM_IMAGE_VERSION_NAME_SIZE 75
|
||||
#define SMEM_IMAGE_VERSION_VARIANT_SIZE 20
|
||||
#define SMEM_IMAGE_VERSION_VARIANT_OFFSET 75
|
||||
#define SMEM_IMAGE_VERSION_OEM_SIZE 32
|
||||
#define SMEM_IMAGE_VERSION_OEM_OFFSET 96
|
||||
#define SMEM_IMAGE_VERSION_OEM_SIZE 33
|
||||
#define SMEM_IMAGE_VERSION_OEM_OFFSET 95
|
||||
#define SMEM_IMAGE_VERSION_PARTITION_APPS 10
|
||||
|
||||
enum {
|
||||
|
@ -974,7 +974,7 @@ msm_get_image_crm_version(struct device *dev,
|
|||
}
|
||||
string_address += current_image * SMEM_IMAGE_VERSION_SINGLE_BLOCK_SIZE;
|
||||
string_address += SMEM_IMAGE_VERSION_OEM_OFFSET;
|
||||
return snprintf(buf, SMEM_IMAGE_VERSION_OEM_SIZE, "%-.32s\n",
|
||||
return snprintf(buf, SMEM_IMAGE_VERSION_OEM_SIZE, "%-.33s\n",
|
||||
string_address);
|
||||
}
|
||||
|
||||
|
@ -995,7 +995,7 @@ msm_set_image_crm_version(struct device *dev,
|
|||
}
|
||||
store_address += current_image * SMEM_IMAGE_VERSION_SINGLE_BLOCK_SIZE;
|
||||
store_address += SMEM_IMAGE_VERSION_OEM_OFFSET;
|
||||
snprintf(store_address, SMEM_IMAGE_VERSION_OEM_SIZE, "%-.32s", buf);
|
||||
snprintf(store_address, SMEM_IMAGE_VERSION_OEM_SIZE, "%-.33s", buf);
|
||||
return count;
|
||||
}
|
||||
|
||||
|
@ -1049,7 +1049,8 @@ msm_get_images(struct device *dev,
|
|||
image_address);
|
||||
pos += snprintf(buf + pos, PAGE_SIZE - pos, "\tVariant:\t%-.20s\n",
|
||||
image_address + SMEM_IMAGE_VERSION_VARIANT_OFFSET);
|
||||
pos += snprintf(buf + pos, PAGE_SIZE - pos, "\tVersion:\t%-.32s\n\n",
|
||||
pos += snprintf(buf + pos, PAGE_SIZE - pos,
|
||||
"\tVersion:\t%-.33s\n",
|
||||
image_address + SMEM_IMAGE_VERSION_OEM_OFFSET);
|
||||
|
||||
image_address += SMEM_IMAGE_VERSION_SINGLE_BLOCK_SIZE;
|
||||
|
|
Loading…
Add table
Reference in a new issue