]> git.baikalelectronics.ru Git - kernel.git/commit
spi: core: Use DEVICE_ATTR_RW() for SPI slave control sysfs attribute
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 31 Jul 2019 12:47:38 +0000 (14:47 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 1 Aug 2019 13:08:37 +0000 (14:08 +0100)
commitae0b7f260c42c93cb992e02426586f90bc8bd124
tree343362eef96a471d8aa9788ceb08e8f4d996f6ca
parentacf0d3da7c91c3f22c0221dbf5cf0f4318d7ef7c
spi: core: Use DEVICE_ATTR_RW() for SPI slave control sysfs attribute

Convert the SPI slave control sysfs attribute from DEVICE_ATTR() to
DEVICE_ATTR_RW(), to reduce boilerplate.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20190731124738.14519-1-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c