generic: routerboot sysfs: move tag_show_string()
authorThibaut VARÈNE <hacks@slashdirt.org>
Wed, 13 May 2020 16:43:30 +0000 (18:43 +0200)
committerKoen Vandeputte <koen.vandeputte@ncentric.com>
Thu, 28 May 2020 09:09:10 +0000 (11:09 +0200)
commitdac18f66fb18ebadf6f050d9c5c055a82855e8f6
tree462bc4138809337e0692bf935eb160634554d96e
parent39ec3c5986e5109c3f1dd63b27d884606453191b
generic: routerboot sysfs: move tag_show_string()

This routine will be shared between hard and soft config drivers.
Also use scnprintf() instead of snprintf().

Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c
target/linux/generic/files/drivers/platform/mikrotik/routerboot.c
target/linux/generic/files/drivers/platform/mikrotik/routerboot.h