[U-Boot] [PATCH 4/5] dm: usb: Add support for USB keyboards with driver model

Marek Vasut marex at denx.de
Tue Sep 8 20:33:25 CEST 2015


On Tuesday, September 08, 2015 at 07:15:11 PM, Simon Glass wrote:
> Switch USB keyboards over to use driver model instead of scanning with the
> horrible usb_get_dev_index() function. This involves creating a new uclass
> for keyboards, although so far there is no API.

Hi,

Why don't you create an UCLASS for generic input device instead ?

But in general, looks pretty standard/OK.

Best regards,
Marek Vasut


More information about the U-Boot mailing list