aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorBjorn Andersson <[email protected]>2019-07-24 04:05:11 +0530
committerBjorn Andersson <[email protected]>2019-08-05 14:56:30 -0700
commit9aebf4de220344e2f03ae6386272bf98f80fd295 (patch)
treead37ed085240cbfe96935ba1999c38dd804da85b /include/linux
parentaf311ff9a69189a03548efd5a47d4bb44644fd45 (diff)
base: soc: Add serial_number attribute to soc
Add new attribute named "serial_number" as a standard interface for user space to acquire the serial number of the device. For ST-Ericsson SoCs this is exposed by the cryptically named "soc_id" attribute, but this provides a human readable standardized name for this property. Tested-by: Vinod Koul <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Signed-off-by: Vaishali Thakkar <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Reviewed-by: Vinod Koul <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sys_soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sys_soc.h b/include/linux/sys_soc.h
index b7c70c3e953f..48ceea867dd6 100644
--- a/include/linux/sys_soc.h
+++ b/include/linux/sys_soc.h
@@ -12,6 +12,7 @@ struct soc_device_attribute {
const char *machine;
const char *family;
const char *revision;
+ const char *serial_number;
const char *soc_id;
const void *data;
};