[PATCH v4 2/2] staging: greybus: resolved checkpatch checks for light.c

From: Rachit Dhar

Date: Sat Mar 07 2026 - 09:10:13 EST


Added comments to mutex declarations, to resolve the associated checkpatch.pl checks:

CHECK: struct mutex definition without comment
+ struct mutex lock;

CHECK: struct mutex definition without comment
+ struct mutex lights_lock;

Signed-off-by: Rachit Dhar <rchtdhr@xxxxxxxxx>
---
drivers/staging/greybus/light.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c
index cab02b5da867..1391c2b5d5f4 100644
--- a/drivers/staging/greybus/light.c
+++ b/drivers/staging/greybus/light.c
@@ -37,7 +37,7 @@ struct gb_channel {
bool releasing;
bool strobe_state;
bool active;
- struct mutex lock;
+ struct mutex lock; /* protects gb_channel->active */
};

struct gb_light {
@@ -59,7 +59,7 @@ struct gb_lights {
struct gb_connection *connection;
u8 lights_count;
struct gb_light *lights;
- struct mutex lights_lock;
+ struct mutex lights_lock; /* protects gb_lights->lights */
};

static void gb_lights_channel_free(struct gb_channel *channel);
--
2.43.0