aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/sysfs.c
diff options
context:
space:
mode:
authorRafael J. Wysocki2020-06-29 13:49:49 +0200
committerRafael J. Wysocki2020-06-29 13:49:49 +0200
commitda85a855104d6ee563b8d06601ca3f6b0a13142f (patch)
tree702cb51e5e0d7fb82df6aff5f47b96a6338a4ee4 /drivers/acpi/sysfs.c
parent5ae318f6fd9bbbb57c6b3841817a16fbd7649127 (diff)
parente6d701dca9893990d999fd145e3e07223c002b06 (diff)
Merge back sysfs-related ACPI material for v5.9.
Diffstat (limited to 'drivers/acpi/sysfs.c')
-rw-r--r--drivers/acpi/sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
index 6ad142d837c9..a5cc4f3bb1e3 100644
--- a/drivers/acpi/sysfs.c
+++ b/drivers/acpi/sysfs.c
@@ -938,13 +938,13 @@ static void __exit interrupt_stats_exit(void)
}
static ssize_t
-acpi_show_profile(struct device *dev, struct device_attribute *attr,
+acpi_show_profile(struct kobject *kobj, struct kobj_attribute *attr,
char *buf)
{
return sprintf(buf, "%d\n", acpi_gbl_FADT.preferred_profile);
}
-static const struct device_attribute pm_profile_attr =
+static const struct kobj_attribute pm_profile_attr =
__ATTR(pm_profile, S_IRUGO, acpi_show_profile, NULL);
static ssize_t hotplug_enabled_show(struct kobject *kobj,