2022-06-19 09:47:11

by Colin Ian King

[permalink] [raw]
Subject: [PATCH] extconn: remove extraneous space before a debug message

There is an extreneous space before a dev_dbg message, remove it.

Signed-off-by: Colin Ian King <[email protected]>
---
drivers/extcon/extcon-palmas.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index d2c1a8b89c08..32f8b541770b 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -107,7 +107,7 @@ static irqreturn_t palmas_id_irq_handler(int irq, void *_palmas_usb)
(id_src & PALMAS_USB_ID_INT_SRC_ID_GND)) {
palmas_usb->linkstat = PALMAS_USB_STATE_ID;
extcon_set_state_sync(edev, EXTCON_USB_HOST, true);
- dev_dbg(palmas_usb->dev, " USB-HOST cable is attached\n");
+ dev_dbg(palmas_usb->dev, "USB-HOST cable is attached\n");
}

return IRQ_HANDLED;
--
2.35.3


2022-06-22 20:55:43

by Chanwoo Choi

[permalink] [raw]
Subject: Re: [PATCH] extconn: remove extraneous space before a debug message

On 22. 6. 19. 17:42, Colin Ian King wrote:
> There is an extreneous space before a dev_dbg message, remove it.
>
> Signed-off-by: Colin Ian King <[email protected]>
> ---
> drivers/extcon/extcon-palmas.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
> index d2c1a8b89c08..32f8b541770b 100644
> --- a/drivers/extcon/extcon-palmas.c
> +++ b/drivers/extcon/extcon-palmas.c
> @@ -107,7 +107,7 @@ static irqreturn_t palmas_id_irq_handler(int irq, void *_palmas_usb)
> (id_src & PALMAS_USB_ID_INT_SRC_ID_GND)) {
> palmas_usb->linkstat = PALMAS_USB_STATE_ID;
> extcon_set_state_sync(edev, EXTCON_USB_HOST, true);
> - dev_dbg(palmas_usb->dev, " USB-HOST cable is attached\n");
> + dev_dbg(palmas_usb->dev, "USB-HOST cable is attached\n");
> }
>
> return IRQ_HANDLED;

Fix the wrong word on patch title and use captital letter of first char as following:
- extconn: remove extraneous space before a debug message
-> extcon: Remove extraneous space before a debug message

Applied it.

--
Best Regards,
Samsung Electronics
Chanwoo Choi