firmware: turris-mox-rwtm: Don't create own kobject type
authorMarek Behún <kabel@kernel.org>
Sat, 31 Aug 2024 09:20:41 +0000 (11:20 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 2 Sep 2024 09:42:09 +0000 (09:42 +0000)
commit579e05ee1bfbc76bd270074916882471e88c7af3
treec49223a4e97f742b8d7866e5dd0de2d27d584725
parent97a9c5b3e0a4791cd4aa9d9ebbbfb2c0e83e2ff0
firmware: turris-mox-rwtm: Don't create own kobject type

In order to create attribute files in /sys/firmware/turris-mox-rwtm,
this driver creates it's own kobject type.

Simplify this by dropping this own kobject creation, and instead
creating standard device attribute files.

For backwards compatibility with sysfs ABI, create a symlink
/sys/firmware/turris-mox-rwtm, pointing to this device's sysfs
directory.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://lore.kernel.org/r/20240831092050.23093-8-kabel@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/turris-mox-rwtm.c