]> git.baikalelectronics.ru Git - kernel.git/commit
uapi: map_to_7segment: Update example in documentation
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 7 Feb 2021 13:05:43 +0000 (14:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Feb 2021 11:27:32 +0000 (12:27 +0100)
commit0566752c3e8681ec47fee37374cb38081d801e95
tree5d9f2a1465313ffa3e0d50bd6642b3386fc214e5
parent61de21a8315147da08a37ff8db2716739977eadc
uapi: map_to_7segment: Update example in documentation

The device_attribute .show() and .store() methods gained an extra
parameter in v2.6.13, but the example in the documentation for the
7-segment header file was never updated.  Add the missing parameters.

While at it, get rid of the (misspelled) deprecated symbolic
permissions, and switch to DEVICE_ATTR_RW(), which was introduced in
v3.11

Fixes: 54b6f35c99974e99 ("[PATCH] Driver core: change device_attribute callbacks")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20210207130543.2128980-1-geert@linux-m68k.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/map_to_7segment.h