OSDN Git Service

platform/mellanox: fix the mlx-bootctl sysfs
authorLiming Sun <lsun@mellanox.com>
Wed, 18 Dec 2019 18:35:27 +0000 (13:35 -0500)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Dec 2019 17:00:50 +0000 (19:00 +0200)
commit77dcc95e2048765b616b5308863ab1d4d5a8f720
tree3a2688d0e0394efee134b1ef2752426f24af9bd7
parentd1eef1c619749b2a57e514a3fa67d9a516ffa919
platform/mellanox: fix the mlx-bootctl sysfs

This is a follow-up commit for the sysfs attributes to change
from DRIVER_ATTR to DEVICE_ATTR according to some initial comments.
In such case, it's better to point the sysfs path to the device
itself instead of the driver. The ABI document is also updated.

Fixes: 79e29cb8fbc5 ("platform/mellanox: Add bootctl driver for Mellanox BlueField Soc")
Signed-off-by: Liming Sun <lsun@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Documentation/ABI/testing/sysfs-platform-mellanox-bootctl
drivers/platform/mellanox/mlxbf-bootctl.c