On 2012-Nov-24 14:09 , Mark Cave-Ayland wrote:
.
Hmmm. How about we do something along the lines of: scan all devices in /aliases for one with a device_type of keyboard, and assign the keyboard alias to the first one we find? The main reason for doing this is that I'd like to keep the alias assignment outside of the hardware driver code.
Why scan the device in /aliases, rather than the entire device tree? On real hardware, your keyboard may not already be represented in /aliases.