[PATCH] gpio: amdpt: Use __func__ instead of hardcoded function names
From: Chen Jung Ku
Date: Sat Nov 21 2026 - 12:46:56 EST
Replace hardcoded function names with __func__ in the dev_dbg()
messages to fix checkpatch.pl warnings.
No functional changes.
Signed-off-by: Chen Jung Ku <ku.loong@xxxxxxxxxxxxxxxx>
---
drivers/gpio/gpio-amdpt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-amdpt.c b/drivers/gpio/gpio-amdpt.c
index e886cf9e14ea..54281851a086 100644
--- a/drivers/gpio/gpio-amdpt.c
+++ b/drivers/gpio/gpio-amdpt.c
@@ -35,7 +35,7 @@ static int pt_gpio_request(struct gpio_chip *gc, unsigned offset)
struct pt_gpio_chip *pt_gpio = gpiochip_get_data(gc);
u32 using_pins;
- dev_dbg(gc->parent, "pt_gpio_request offset=%x\n", offset);
+ dev_dbg(gc->parent, "%s offset=%x\n", __func__, offset);
guard(gpio_generic_lock_irqsave)(gen_gc);
@@ -63,7 +63,7 @@ static void pt_gpio_free(struct gpio_chip *gc, unsigned offset)
using_pins &= ~BIT(offset);
writel(using_pins, pt_gpio->reg_base + PT_SYNC_REG);
- dev_dbg(gc->parent, "pt_gpio_free offset=%x\n", offset);
+ dev_dbg(gc->parent, "%s offset=%x\n", __func__, offset);
}
static int pt_gpio_probe(struct platform_device *pdev)
--
2.43.0