mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
df167450a5
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.139 Removed upstreamed: backport-5.15/830-v6.6-2-leds-turris-omnia-Drop-unnecessary-mutex-locking.patch[1] backport-5.15/830-v6.7-1-leds-turris-omnia-Do-not-use-SMBUS-calls.patch[2] x86/patches-5.15/120-hwrng-geode-fix-accessing-registers.patch[3] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.139&id=aec3706971b332af8321b2beccba981b8061489a 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.139&id=893eedf596dd81c7a7f0cd80b345956ae000eab9 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.139&id=a5c83c8043d70b9a28d1bd78a2dbbab340f43889 Build system: x86_64 Build-tested: ramips/tplink_archer-a6-v3 Run-tested: ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me>
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
From a01633cd867b8ddf2d8321fe575dc3c54e037b09 Mon Sep 17 00:00:00 2001
|
|
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
Date: Fri, 29 Jul 2022 16:03:46 +0200
|
|
Subject: leds: turris-omnia: convert to use dev_groups
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The driver core supports the ability to handle the creation and removal
|
|
of device-specific sysfs files in a race-free manner. Take advantage of
|
|
that by converting this driver to use this by moving the sysfs
|
|
attributes into a group and assigning the dev_groups pointer to it.
|
|
|
|
Cc: Pavel Machek <pavel@ucw.cz>
|
|
Cc: linux-leds@vger.kernel.org
|
|
Cc: linux-kernel@vger.kernel.org
|
|
Reviewed-by: Marek Behún <kabel@kernel.org>
|
|
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
|
Signed-off-by: Pavel Machek <pavel@ucw.cz>
|
|
---
|
|
drivers/leds/leds-turris-omnia.c | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
(limited to 'drivers/leds/leds-turris-omnia.c')
|
|
|
|
--- a/drivers/leds/leds-turris-omnia.c
|
|
+++ b/drivers/leds/leds-turris-omnia.c
|
|
@@ -260,9 +260,6 @@ static int omnia_leds_probe(struct i2c_c
|
|
led += ret;
|
|
}
|
|
|
|
- if (devm_device_add_groups(dev, omnia_led_controller_groups))
|
|
- dev_warn(dev, "Could not add attribute group!\n");
|
|
-
|
|
return 0;
|
|
}
|
|
|
|
@@ -304,6 +301,7 @@ static struct i2c_driver omnia_leds_driv
|
|
.driver = {
|
|
.name = "leds-turris-omnia",
|
|
.of_match_table = of_omnia_leds_match,
|
|
+ .dev_groups = omnia_led_controller_groups,
|
|
},
|
|
};
|
|
|