summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-08-12 16:00:50 -0400
committerTom Rini <trini@konsulko.com>2016-08-12 16:00:50 -0400
commitf4b0df1823921ad3bc39820466e9c5201cef6210 (patch)
treefa7ae4f3ac018bc010b7910da55ebb76e3639489 /drivers/misc
parentab65006b08c5a2d022b1ce43581e555c82926cd4 (diff)
parentb647f55420310beb8f576e23f3b6a69745126f71 (diff)
downloadu-boot-imx-f4b0df1823921ad3bc39820466e9c5201cef6210.zip
u-boot-imx-f4b0df1823921ad3bc39820466e9c5201cef6210.tar.gz
u-boot-imx-f4b0df1823921ad3bc39820466e9c5201cef6210.tar.bz2
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/misc-uclass.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c
index 13a6ea5..d9eea3d 100644
--- a/drivers/misc/misc-uclass.c
+++ b/drivers/misc/misc-uclass.c
@@ -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",