]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e9cb4ca4e29b9e6bd83d2101e5423565faeecbb
tree3a2688d0e0394efee134b1ef2752426f24af9bd7
parent18ca123f6ebe35a17ec03d9d706c2e230bcf298a
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: 5f9a02b42e71 ("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