Merge git://git.denx.de/u-boot-dm

This commit is contained in:
Tom Rini
2016-08-12 16:00:50 -04:00
14 changed files with 100 additions and 33 deletions
+11
View File
@@ -45,6 +45,17 @@ int misc_ioctl(struct udevice *dev, unsigned long request, void *buf)
return ops->ioctl(dev, request, buf);
}
int misc_call(struct udevice *dev, int msgid, void *tx_msg, int tx_size,
void *rx_msg, int rx_size)
{
const struct misc_ops *ops = device_get_ops(dev);
if (!ops->call)
return -ENOSYS;
return ops->call(dev, msgid, tx_msg, tx_size, rx_msg, rx_size);
}
UCLASS_DRIVER(misc) = {
.id = UCLASS_MISC,
.name = "misc",