Skip to contentSkip to conversation

extcon: usb-gpio: fix a non-kernel-doc comment

PATCH In review Randy Dunlap 2 participants 2 messages Nov 15, 2021 – Dec 16, 2021 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: usb-gpio: fix a non-kernel-doc comment

Do not use "/**" to begin a non-kernel-doc comment. Fixes this build warning:

drivers/extcon/extcon-usb-gpio.c:23: warning: expecting prototype for drivers/extcon/extcon-usb-gpio.c(). Prototype was for USB_GPIO_DEBOUNCE_MS() instead

---
 drivers/extcon/extcon-usb-gpio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-usb-gpio.c +1 -1
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/**
+/*
  * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver
  *
  * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com
maintainer
#1 lore raw
Quoted 18 lines · Randy Dunlap

Do not use "/**" to begin a non-kernel-doc comment. Fixes this build warning:

drivers/extcon/extcon-usb-gpio.c:23: warning: expecting prototype for drivers/extcon/extcon-usb-gpio.c(). Prototype was for USB_GPIO_DEBOUNCE_MS() instead

---
 drivers/extcon/extcon-usb-gpio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/extcon/extcon-usb-gpio.c line 5

Quoted 6 lines
drivers/extcon/extcon-usb-gpio.c +1 -1
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/**
+/*
  * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver
  *
  * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com

Applied it.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics