chardev: GPIO common access methods: repair non-kernel-doc comment
PATCH v2 1/1 chardev: GPIO common access methods: repair non-kernel-doc comment
Change a "/**" non-kernel-doc comment to a plain C comment "/*" to avoid 21 warnings like these:
Warning: ./include/linux/nsc_gpio.h:2 Cannot find identifier on line:
nsc_gpio.c
Warning: ./include/linux/nsc_gpio.h:4 Cannot find identifier on line:
National Semiconductor GPIO common access methods.
Warning: ./include/linux/nsc_gpio.h:6 Cannot find identifier on line:
struct nsc_gpio_ops abstracts the low-level access
---
v2: rebase & resend;
add Ack from Jim Cromie;
add Linus and Bartosz
include/linux/nsc_gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/nsc_gpio.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0 */ -/** +/* nsc_gpio.c National Semiconductor GPIO common access methods.
Quoted 10 lines · Randy Dunlap
Change a "/**" non-kernel-doc comment to a plain C comment "/*" to avoid 21 warnings like these:
Warning:
./include/linux/nsc_gpio.h:2Cannot find identifier on line:
nsc_gpio.c
Warning:./include/linux/nsc_gpio.h:4Cannot find identifier on line:
National Semiconductor GPIO common access methods.
Warning:./include/linux/nsc_gpio.h:6Cannot find identifier on line:
structnsc_gpio_opsabstracts the low-level access
Quoted 3 lines
Fixes fe3a168a2ce1 ("[PATCH] chardev: GPIO for SCx200 & PC-8736x: add gpio-ops vtable")Signed-off-by Randy Dunlap <[email protected]>Acked-by Jim Cromie <[email protected]>
For the patch:
For this stuff's existance:
$ git grep 'nsc_gpio\.h' drivers/char/nsc_gpio.c:#include <linux/nsc_gpio.h> drivers/char/pc8736x_gpio.c:#include <linux/nsc_gpio.h> drivers/char/scx200_gpio.c:#include <linux/nsc_gpio.h> drivers/leds/leds-net48xx.c:#include <linux/nsc_gpio.h>
Blaeh, we need to get this "necessarily different" stuff in line.
I'm not blaming anyone because it may very well predate gpiolib, what could they do.
I'll analyze.
Yours,
Linus Walleij
Quoted 11 lines · Randy Dunlap
Change a "/**" non-kernel-doc comment to a plain C comment "/*" to avoid 21 warnings like these:
Warning:
./include/linux/nsc_gpio.h:2Cannot find identifier on line:
nsc_gpio.c
Warning:./include/linux/nsc_gpio.h:4Cannot find identifier on line:
National Semiconductor GPIO common access methods.
Warning:./include/linux/nsc_gpio.h:6Cannot find identifier on line:
structnsc_gpio_opsabstracts the low-level access[...]
So this isn't really a header for a GPIOLIB-based driver and technically outside of my jurisdiction but it's also not seen any changes for 20 years so let me take it and see if anyone yells.
[1/1] chardev: GPIO common access methods: repair non-kernel-doc comment
https://git.kernel.org/brgl/c/d4dc896fa2bdfd7d1a78911598a0fa3e3c831d92
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>
[email protected]
Acked-byQuoted 13 lines · Bartosz Golaszewski
Quoted 10 lines · Randy Dunlap
Change a "/**" non-kernel-doc comment to a plain C comment "/*" to avoid 21 warnings like these:
Warning:
./include/linux/nsc_gpio.h:2Cannot find identifier on line:
nsc_gpio.c
Warning:./include/linux/nsc_gpio.h:4Cannot find identifier on line:
National Semiconductor GPIO common access methods.
Warning:./include/linux/nsc_gpio.h:6Cannot find identifier on line:
structnsc_gpio_opsabstracts the low-level access
Quoted 6 lines
Quoted 1 line
[...]
So this isn't really a header for a GPIOLIB-based driver and technically outside of my jurisdiction but it's also not seen any changes for 20 years so let me take it and see if anyone yells.
as to your GPIOLIB rewrite, I have the board buried somewhere, I'll try to get it back together and running, and test your rewrite. just not real soon.
Quoted 6 lines
[1/1] chardev: GPIO common access methods: repair non-kernel-doc comment
https://git.kernel.org/brgl/c/d4dc896fa2bdfd7d1a78911598a0fa3e3c831d92Best regards,
--
Bartosz Golaszewski <[email protected]>