Loading drivers/soc/qcom/socinfo.c +9 −4 Original line number Diff line number Diff line Loading @@ -121,7 +121,8 @@ const char *hw_platform_subtype[] = { [PLATFORM_SUBTYPE_UNKNOWN] = "Unknown", [PLATFORM_SUBTYPE_CHARM] = "charm", [PLATFORM_SUBTYPE_STRANGE] = "strange", [PLATFORM_SUBTYPE_STRANGE_2A] = "strange_2a," [PLATFORM_SUBTYPE_STRANGE_2A] = "strange_2a", [PLATFORM_SUBTYPE_INVALID] = "Invalid", }; /* Used to parse shared memory. Must match the modem. */ Loading Loading @@ -777,11 +778,15 @@ msm_get_platform_subtype(struct device *dev, } return snprintf(buf, PAGE_SIZE, "%-.32s\n", qrd_hw_platform_subtype[hw_subtype]); } else { if (hw_subtype >= PLATFORM_SUBTYPE_INVALID) { pr_err("Invalid hardware platform subtype\n"); hw_subtype = PLATFORM_SUBTYPE_INVALID; } return snprintf(buf, PAGE_SIZE, "%-.32s\n", hw_platform_subtype[hw_subtype]); } } static ssize_t msm_get_platform_subtype_id(struct device *dev, Loading Loading
drivers/soc/qcom/socinfo.c +9 −4 Original line number Diff line number Diff line Loading @@ -121,7 +121,8 @@ const char *hw_platform_subtype[] = { [PLATFORM_SUBTYPE_UNKNOWN] = "Unknown", [PLATFORM_SUBTYPE_CHARM] = "charm", [PLATFORM_SUBTYPE_STRANGE] = "strange", [PLATFORM_SUBTYPE_STRANGE_2A] = "strange_2a," [PLATFORM_SUBTYPE_STRANGE_2A] = "strange_2a", [PLATFORM_SUBTYPE_INVALID] = "Invalid", }; /* Used to parse shared memory. Must match the modem. */ Loading Loading @@ -777,11 +778,15 @@ msm_get_platform_subtype(struct device *dev, } return snprintf(buf, PAGE_SIZE, "%-.32s\n", qrd_hw_platform_subtype[hw_subtype]); } else { if (hw_subtype >= PLATFORM_SUBTYPE_INVALID) { pr_err("Invalid hardware platform subtype\n"); hw_subtype = PLATFORM_SUBTYPE_INVALID; } return snprintf(buf, PAGE_SIZE, "%-.32s\n", hw_platform_subtype[hw_subtype]); } } static ssize_t msm_get_platform_subtype_id(struct device *dev, Loading