[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d37e7ccd-1d5d-4237-8a7e-a0eb10ec069d@web.de>
Date: Mon, 11 Aug 2025 19:10:46 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: "Leo L. Schwab" <ewhac@...ac.org>, linux-input@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>,
Benjamin Tissoires <bentiss@...nel.org>, Hans de Goede <hansg@...nel.org>,
Jiri Kosina <jikos@...nel.org>, Kate Hsuan <hpa@...hat.com>
Subject: Re: [PATCH] HID: lg-g15 - Add support for Logitech G13.
…
> +++ b/drivers/hid/hid-lg-g15.c
…
> +static int lg_g13_kbd_led_set(struct led_classdev *led_cdev, enum led_brightness brightness)
> +{
…
> + mutex_lock(&g15->mutex);
> + ret = lg_g13_kbd_led_write(g15, g15_led, brightness);
> + mutex_unlock(&g15->mutex);
> +
> + return ret;
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&g15->mutex);”?
https://elixir.bootlin.com/linux/v6.16/source/include/linux/mutex.h#L225
Regards,
Markus
Powered by blists - more mailing lists