]> git.hungrycats.org Git - linux/commit
HID: hid-lenovo-go-s: Move static led_classdev_mc to drvdata struct
authorDerek J. Clark <derekjohn.clark@gmail.com>
Mon, 14 Sep 2026 22:53:02 +0000 (15:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 17:10:52 +0000 (12:10 -0500)
commitfba8d8f8352ce29d9f8994b4072886e1940fca23
tree72a5f8de3d8a7adc5b6e802489aa7383c4275a5c
parentd69db0135c6ea7b1234d3fbf5abe78716b50224d
HID: hid-lenovo-go-s: Move static led_classdev_mc to drvdata struct

commit 7a5673e5f0f71cfe4004c1f1c3112cd1ea8ae1d9 upstream.

In the next patch I will switch drvdata from static global to a
devm_kzalloc struct. In preparation for that, move the led_classdev_mc
to be a member of the gos_cfg_drvdata struct. As part of that effort,
provide a constant name when accessing it and access the led_classdev
through the led_classdev_mc.

Fixes: be6d7dbb368ba840d7 ("HID: hid-lenovo-go-s: Add RGB LED control interface")
Cc: stable@vger.kernel.org
Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-lenovo-go-s.c