Loading drivers/soc/qcom/socinfo.c +13 −13 Original line number Diff line number Diff line Loading @@ -1163,6 +1163,18 @@ static void socinfo_print(void) } } static const char *socinfo_machine(unsigned int id) { int idx; for (idx = 0; idx < ARRAY_SIZE(soc_id); idx++) { if (soc_id[idx].id == id) return soc_id[idx].name; } return NULL; } uint32_t socinfo_get_id(void) { return (socinfo) ? le32_to_cpu(socinfo->id) : 0; Loading @@ -1173,22 +1185,10 @@ const char *socinfo_get_id_string(void) { uint32_t id = socinfo_get_id(); return (socinfo) ? soc_id[id].name : NULL; return socinfo_machine(id); } EXPORT_SYMBOL(socinfo_get_id_string); static const char *socinfo_machine(unsigned int id) { int idx; for (idx = 0; idx < ARRAY_SIZE(soc_id); idx++) { if (soc_id[idx].id == id) return soc_id[idx].name; } return NULL; } static int qcom_socinfo_probe(struct platform_device *pdev) { struct qcom_socinfo *qs; Loading Loading
drivers/soc/qcom/socinfo.c +13 −13 Original line number Diff line number Diff line Loading @@ -1163,6 +1163,18 @@ static void socinfo_print(void) } } static const char *socinfo_machine(unsigned int id) { int idx; for (idx = 0; idx < ARRAY_SIZE(soc_id); idx++) { if (soc_id[idx].id == id) return soc_id[idx].name; } return NULL; } uint32_t socinfo_get_id(void) { return (socinfo) ? le32_to_cpu(socinfo->id) : 0; Loading @@ -1173,22 +1185,10 @@ const char *socinfo_get_id_string(void) { uint32_t id = socinfo_get_id(); return (socinfo) ? soc_id[id].name : NULL; return socinfo_machine(id); } EXPORT_SYMBOL(socinfo_get_id_string); static const char *socinfo_machine(unsigned int id) { int idx; for (idx = 0; idx < ARRAY_SIZE(soc_id); idx++) { if (soc_id[idx].id == id) return soc_id[idx].name; } return NULL; } static int qcom_socinfo_probe(struct platform_device *pdev) { struct qcom_socinfo *qs; Loading