Hi! > >root@duo:~# cat /sys/power/state > >freeze mem disk > >root@duo:~# cat /sys/power/disk > >[platform] shutdown reboot suspend > >root@duo:~# > > > >>Could you propose the acceptable format then? > >>The numbers alone are inconvenient to use, we need a human > >>readable description next to them. Or some another way > >>to obtain the name. > > > >Files like "0.active", "0.name", "1.active", "1.name"? > > > >Subdirectories 0/1 with "name" and "active" files? > > We have flash_sync_strobe attribute which allows to read currently > chosen sync_led. I would simplify this: > > Let's assume there are two LED Flash class deviecs: > > - max77693-flash1 > - max77693-flash2 > > Proposed design described by use cases: > > #cd /sys/class/leds/max77693-flash1 > #cat available_flash_leds > #[0.none] 1.max77693-flash2 Yeah. Should not have showed you /sys/power/state, right? state gets away with this, because it uses few fixed strings. No funny characters there, and it is "closely guarded". You don't have enough control to do this... plus you have put the numbers there. No. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html