diff options
author | Tom Rini <trini@konsulko.com> | 2016-08-12 16:00:50 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-08-12 16:00:50 -0400 |
commit | f4b0df1823921ad3bc39820466e9c5201cef6210 (patch) | |
tree | fa7ae4f3ac018bc010b7910da55ebb76e3639489 /drivers/misc | |
parent | ab65006b08c5a2d022b1ce43581e555c82926cd4 (diff) | |
parent | b647f55420310beb8f576e23f3b6a69745126f71 (diff) | |
download | u-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.c | 11 |
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", |