openwrt/target/linux/generic/files/drivers/platform/mikrotik
Thibaut VARÈNE 39ec3c5986 generic: platform/mikrotik: rb_hardconfig.c minor fixes
For the sake of strictly typed code, add a missing const qualifier.
Add a missing return value in error path.
Check the return value of mtd_read(), for good measure.
Also demote the error printks of failed sysfs file creation to warn
level since they are not fatal in the init() sequence.
Finally, add a note regarding PAGE_SIZE and clarify a comment.

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>
2020-05-28 11:09:10 +02:00
..
Kconfig generic: platform/mikrotik: reorder Kconfig 2020-05-28 11:09:10 +02:00
Makefile generic: routerboot sysfs platform driver 2020-05-08 15:17:17 +02:00
rb_hardconfig.c generic: platform/mikrotik: rb_hardconfig.c minor fixes 2020-05-28 11:09:10 +02:00
routerboot.c generic: platform/mikrotik: disambiguate SPDX-License-Identifier 2020-05-20 17:03:45 +02:00
routerboot.h generic: platform/mikrotik: disambiguate SPDX-License-Identifier 2020-05-20 17:03:45 +02:00