aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/sys_soc.h
diff options
context:
space:
mode:
authorMurali Nalajala <mnalajal@codeaurora.org>2019-10-07 13:37:42 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-10 14:35:32 +0200
commitc31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1 (patch)
treec77f7b5b78f358a59ddcc079edaab9bdfb68d2d2 /include/linux/sys_soc.h
parentsh: add the sh_ prefix to early platform symbols (diff)
downloadwireguard-linux-c31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1.tar.xz
wireguard-linux-c31e73121f4c1ec45a3e523ac6ce3ce6dafdcec1.zip
base: soc: Handle custom soc information sysfs entries
Soc framework exposed sysfs entries are not sufficient for some of the h/w platforms. Currently there is no interface where soc drivers can expose further information about their SoCs via soc framework. This change address this limitation where clients can pass their custom entries as attribute group and soc framework would expose them as sysfs properties. Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/1570480662-25252-1-git-send-email-mnalajal@codeaurora.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/sys_soc.h')
-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 48ceea867dd6..d9b3cf0f410c 100644
--- a/include/linux/sys_soc.h
+++ b/include/linux/sys_soc.h
@@ -15,6 +15,7 @@ struct soc_device_attribute {
const char *serial_number;
const char *soc_id;
const void *data;
+ const struct attribute_group *custom_attr_group;
};
/**