lkml.org 
[lkml]   [2014]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v5] leds: USB: HID: Add support for MSI GT683R led panels
From
> Hi!

Hi.

>> --- /dev/null
>> +++ b/Documentation/ABI/testing/sysfs-class-hid-driver-gt683r
>> @@ -0,0 +1,10 @@
>> +What: /sys/class/hidraw/<hidraw>/device/state
>> +Date: Jun 2014
>> +KernelVersion: 3.15
>> +Contact: Janne Kanniainen <janne.kanniainen@gmail.com>
>> +Description:
>> + Set the mode of LEDs
>> +
>> + 0 - normal
>> + 1 - audio
>> + 2 - breathing
>
> THat's some strange interface. Don't we normally use led triggers for this?

I can implement it that way, if you all think that it is correct way.
What do Jiri and Johan thinks of it?

> And the mode of the LED should really be in /sys/class/leds, not in hidraw somewhere...

The problem is that all panels can only be in one mode at the time.
For example front panel can't be in breathing mode while side panel is
in normal mode.


Janne


\
 
 \ /
  Last update: 2014-06-15 02:01    [W:0.231 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site