aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/ifs/sysfs.c
diff options
context:
space:
mode:
authorJithu Joseph <[email protected]>2023-03-22 00:33:53 +0000
committerHans de Goede <[email protected]>2023-03-27 14:10:20 +0000
commitd847eddf0ee9c7112003becebe53fd8bf10d8671 (patch)
tree0a20b185f7a20c32854b3f652fed5714c4646860 /drivers/platform/x86/intel/ifs/sysfs.c
parentplatform/x86/intel/ifs: Reorganize driver data (diff)
downloadkernel-d847eddf0ee9c7112003becebe53fd8bf10d8671.tar.gz
kernel-d847eddf0ee9c7112003becebe53fd8bf10d8671.zip
platform/x86/intel/ifs: IFS cleanup
Cleanup incorporating misc review comments - Remove the subdirectory intel_ifs/0 for devicenode [1] - Make plat_ifs_groups non static and use it directly without using a function [2] Link: https://lore.kernel.org/lkml/[email protected]/ [1] Link: https://lore.kernel.org/lkml/[email protected]/ [2] Signed-off-by: Jithu Joseph <[email protected]> Reviewed-by: Tony Luck <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/ifs/sysfs.c')
-rw-r--r--drivers/platform/x86/intel/ifs/sysfs.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/platform/x86/intel/ifs/sysfs.c b/drivers/platform/x86/intel/ifs/sysfs.c
index ee636a76b083..2007d8054f04 100644
--- a/drivers/platform/x86/intel/ifs/sysfs.c
+++ b/drivers/platform/x86/intel/ifs/sysfs.c
@@ -141,7 +141,7 @@ static ssize_t image_version_show(struct device *dev,
static DEVICE_ATTR_RO(image_version);
/* global scan sysfs attributes */
-static struct attribute *plat_ifs_attrs[] = {
+struct attribute *plat_ifs_attrs[] = {
&dev_attr_details.attr,
&dev_attr_status.attr,
&dev_attr_run_test.attr,
@@ -149,10 +149,3 @@ static struct attribute *plat_ifs_attrs[] = {
&dev_attr_image_version.attr,
NULL
};
-
-ATTRIBUTE_GROUPS(plat_ifs);
-
-const struct attribute_group **ifs_get_groups(void)
-{
- return plat_ifs_groups;
-}