Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 408f5a59 authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Gerrit - the friendly Code Review server
Browse files

soc: qom: add support to export socinfo id string



Some kernel modules may explicitly want to use target
name to get or show target capabilities.
Export socinfo_get_id_string to get target name.

Change-Id: Ic63b9b3d104981f59a1ac2203ca9d4ddbe73e216
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
parent c996d9cb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -328,10 +328,11 @@ uint32_t socinfo_get_id(void)
}
EXPORT_SYMBOL(socinfo_get_id);

static char *socinfo_get_id_string(void)
char *socinfo_get_id_string(void)
{
	return (socinfo) ? cpu_of_id[socinfo->v0_1.id].soc_id_string : NULL;
}
EXPORT_SYMBOL(socinfo_get_id_string);

uint32_t socinfo_get_version(void)
{
+1 −0
Original line number Diff line number Diff line
@@ -126,6 +126,7 @@ uint32_t socinfo_get_id(void);
uint32_t socinfo_get_version(void);
uint32_t socinfo_get_raw_id(void);
char *socinfo_get_build_id(void);
char *socinfo_get_id_string(void);
uint32_t socinfo_get_platform_type(void);
uint32_t socinfo_get_platform_subtype(void);
uint32_t socinfo_get_platform_version(void);