[PATCH 08/10] media: gspca: konica: Fix block comment style
From: fengchenguang
Date: Wed Sep 30 2026 - 05:02:04 EST
From: Chenguang Feng <fengchenguang@xxxxxxxxxx>
Fix coding style issues reported by checkpatch.pl:
- move closing */ of block comments to a separate line
- align * on subsequent lines of block comments
No functional changes.
Signed-off-by: Chenguang Feng <fengchenguang@xxxxxxxxxx>
---
drivers/media/usb/gspca/konica.c | 35 +++++++++++++++++---------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/drivers/media/usb/gspca/konica.c b/drivers/media/usb/gspca/konica.c
index 53db9a2895ea..930cb242a0fa 100644
--- a/drivers/media/usb/gspca/konica.c
+++ b/drivers/media/usb/gspca/konica.c
@@ -40,20 +40,21 @@ struct sd {
};
-/* .priv is what goes to register 8 for this mode, known working values:
- 0x00 -> 176x144, cropped
- 0x01 -> 176x144, cropped
- 0x02 -> 176x144, cropped
- 0x03 -> 176x144, cropped
- 0x04 -> 176x144, binned
- 0x05 -> 320x240
- 0x06 -> 320x240
- 0x07 -> 160x120, cropped
- 0x08 -> 160x120, cropped
- 0x09 -> 160x120, binned (note has 136 lines)
- 0x0a -> 160x120, binned (note has 136 lines)
- 0x0b -> 160x120, cropped
-*/
+/*
+ * .priv is what goes to register 8 for this mode, known working values:
+ * 0x00 -> 176x144, cropped
+ * 0x01 -> 176x144, cropped
+ * 0x02 -> 176x144, cropped
+ * 0x03 -> 176x144, cropped
+ * 0x04 -> 176x144, binned
+ * 0x05 -> 320x240
+ * 0x06 -> 320x240
+ * 0x07 -> 160x120, cropped
+ * 0x08 -> 160x120, cropped
+ * 0x09 -> 160x120, binned (note has 136 lines)
+ * 0x0a -> 160x120, binned (note has 136 lines)
+ * 0x0b -> 160x120, cropped
+ */
static const struct v4l2_pix_format vga_mode[] = {
{160, 120, V4L2_PIX_FMT_KONICA420, V4L2_FIELD_NONE,
.bytesperline = 160,
@@ -240,8 +241,10 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
konica_stream_off(gspca_dev);
#if IS_ENABLED(CONFIG_INPUT)
- /* Don't keep the button in the pressed state "forever" if it was
- pressed when streaming is stopped */
+ /*
+ * Don't keep the button in the pressed state "forever" if it was
+ * pressed when streaming is stopped
+ */
if (sd->snapshot_pressed) {
input_report_key(gspca_dev->input_dev, KEY_CAMERA, 0);
input_sync(gspca_dev->input_dev);
--
2.25.1