platform/x86: wmi-bmof: Use device_create_bin_file()
authorArmin Wolf <W_Armin@gmx.de>
Sun, 30 Jul 2023 20:45:48 +0000 (22:45 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 31 Jul 2023 14:07:24 +0000 (16:07 +0200)
commitf4ae2e96ae929f1618f6e5e55f754f712354d7eb
tree3b09ee570d2218b76a07348d57f1a84ac4755391
parent17ffe3a0fded309449e8bf201ad70358f3d52772
platform/x86: wmi-bmof: Use device_create_bin_file()

Use device_create_bin_file() instead of sysfs_create_bin_file()
to avoid having to access the device kobject.

Tested on a ASUS PRIME B650-PLUS.

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Tested-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230730204550.3402-1-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/wmi-bmof.c