[lkml]   [2012]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v5 4/5] Extcon: support mutually exclusive relation between cables.
On Mon, Feb 20, 2012 at 11:27 AM, Mark Brown
<> wrote:
> On Fri, Feb 10, 2012 at 03:40:37PM +0900, MyungJoo Ham wrote:
>> +What:                /sys/class/extcon/.../mutually_exclusive
>> +Date:                December 2011
>> +Contact:     MyungJoo Ham <>
>> +Description:
>> +             Shows the relations of mutually exclusiveness. For example,
>> +             if the mutually_exclusive array of extcon_dev is
>> +             {0x3, 0x5, 0xC, 0x0}, the, the output is:
>> +             # cat mutually_exclusive
>> +             0x3
>> +             0x5
>> +             0xC
>> +             #
> sysfs really isn't supposed to have more than one value per file so this
> should be something like a directory with one array element per file.
> It'd kind of be cheating but the values could be used as the filenames,
> though serial numbers would be more idiomatic.

Hmm.. I'll either use multiple files with a sub-directory or bin-attr
to inhabit the values. Or I'll search for any other convinient way to
express such an array thru sysfs.



MyungJoo Ham, Ph.D.
System S/W Lab,S/W Center, Samsung Electronics
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2012-02-22 09:25    [W:0.057 / U:3.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site