Move led_mode attribute from HID device to led-class devices and rename it mode. This will also fix race condition by using attribute-groups. (cooloney@gmai.com: fix a typo in commit message) Signed-off-by: Janne Kanniainen <janne.kanniainen@gmail.com> Reviewed-by: Johan Hovold <johan@kernel.org> Signed-off-by: Bryan Wu <cooloney@gmail.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			No EOL
		
	
	
		
			474 B
			
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			No EOL
		
	
	
		
			474 B
			
		
	
	
	
		
			Text
		
	
	
	
	
	
What:		/sys/class/leds/<led>/gt683r/mode
 | 
						|
Date:		Jun 2014
 | 
						|
KernelVersion:	3.17
 | 
						|
Contact:	Janne Kanniainen <janne.kanniainen@gmail.com>
 | 
						|
Description:
 | 
						|
		Set the mode of LEDs. You should notice that changing the mode
 | 
						|
		of one LED will update the mode of its two sibling devices as
 | 
						|
		well.
 | 
						|
 | 
						|
		0 - normal
 | 
						|
		1 - audio
 | 
						|
		2 - breathing
 | 
						|
 | 
						|
		Normal: LEDs are fully on when enabled
 | 
						|
		Audio:  LEDs brightness depends on sound level
 | 
						|
		Breathing: LEDs brightness varies at human breathing rate |