mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-30 21:44:27 -04:00 
			
		
		
		
	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>
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 72a29725b6f2577fa447ca9059cdcd17100043b4 Mon Sep 17 00:00:00 2001
 | |
| From: Marek Behún <kabel@kernel.org>
 | |
| Date: Wed, 2 Aug 2023 18:07:45 +0200
 | |
| Subject: leds: turris-omnia: Use sysfs_emit() instead of sprintf()
 | |
| MIME-Version: 1.0
 | |
| Content-Type: text/plain; charset=UTF-8
 | |
| Content-Transfer-Encoding: 8bit
 | |
| 
 | |
| Use the dedicated sysfs_emit() function instead of sprintf() in sysfs
 | |
| attribute accessor brightness_show().
 | |
| 
 | |
| Signed-off-by: Marek Behún <kabel@kernel.org>
 | |
| Link: https://lore.kernel.org/r/20230802160748.11208-4-kabel@kernel.org
 | |
| Signed-off-by: Lee Jones <lee@kernel.org>
 | |
| ---
 | |
|  drivers/leds/leds-turris-omnia.c | 2 +-
 | |
|  1 file changed, 1 insertion(+), 1 deletion(-)
 | |
| 
 | |
| (limited to 'drivers/leds/leds-turris-omnia.c')
 | |
| 
 | |
| --- a/drivers/leds/leds-turris-omnia.c
 | |
| +++ b/drivers/leds/leds-turris-omnia.c
 | |
| @@ -194,7 +194,7 @@ static ssize_t brightness_show(struct de
 | |
|  	if (ret < 0)
 | |
|  		return ret;
 | |
|  
 | |
| -	return sprintf(buf, "%d\n", ret);
 | |
| +	return sysfs_emit(buf, "%d\n", ret);
 | |
|  }
 | |
|  
 | |
|  static ssize_t brightness_store(struct device *dev, struct device_attribute *a,
 |