[PATCH 02/10] media: gspca: finepix: Use __func__ instead of hardcoded function name

From: fengchenguang

Date: Wed Sep 30 2026 - 04:59:40 EST


From: Chenguang Feng <fengchenguang@xxxxxxxxxx>

Fix coding style issues reported by checkpatch.pl:
replace hardcoded 'dostream' with __func__ in gspca_dbg messages.

No functional changes.

Signed-off-by: Chenguang Feng <fengchenguang@xxxxxxxxxx>
---
drivers/media/usb/gspca/finepix.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/usb/gspca/finepix.c b/drivers/media/usb/gspca/finepix.c
index 282698e2aa8b..470c31317ed3 100644
--- a/drivers/media/usb/gspca/finepix.c
+++ b/drivers/media/usb/gspca/finepix.c
@@ -82,7 +82,7 @@ static void dostream(struct work_struct *work)
int ret = 0;
int len;

- gspca_dbg(gspca_dev, D_STREAM, "dostream started\n");
+ gspca_dbg(gspca_dev, D_STREAM, "%s started\n", __func__);

/* loop reading a frame */
again:
@@ -156,7 +156,7 @@ static void dostream(struct work_struct *work)
}

out:
- gspca_dbg(gspca_dev, D_STREAM, "dostream stopped\n");
+ gspca_dbg(gspca_dev, D_STREAM, "%s stopped\n", __func__);
}

/* this function is called at probe time */
--
2.25.1