aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mei_cl_bus.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-11-27 14:07:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-12 05:04:10 -0800
commit39db74ce1aa83626a0a70ed2abf29a17598fff49 (patch)
tree3e57345e0161df14173ed443d9a1110c09a8627f /include/linux/mei_cl_bus.h
parenttools: hv: kvp_daemon: make IPv6-only-injection work (diff)
downloadlinux-dev-39db74ce1aa83626a0a70ed2abf29a17598fff49.tar.xz
linux-dev-39db74ce1aa83626a0a70ed2abf29a17598fff49.zip
mei: bus: use ssize_t as the return type for send and receive
Mei bus receive and send function may return either number of transmitted bytes or errno. It is better to use ssize_t type for that purpose that mixing size_t with int. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/mei_cl_bus.h')
-rw-r--r--include/linux/mei_cl_bus.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mei_cl_bus.h b/include/linux/mei_cl_bus.h
index 164aad1f9f12..0819d36a3a74 100644
--- a/include/linux/mei_cl_bus.h
+++ b/include/linux/mei_cl_bus.h
@@ -25,8 +25,8 @@ int __mei_cl_driver_register(struct mei_cl_driver *driver,
void mei_cl_driver_unregister(struct mei_cl_driver *driver);
-int mei_cl_send(struct mei_cl_device *device, u8 *buf, size_t length);
-int mei_cl_recv(struct mei_cl_device *device, u8 *buf, size_t length);
+ssize_t mei_cl_send(struct mei_cl_device *device, u8 *buf, size_t length);
+ssize_t mei_cl_recv(struct mei_cl_device *device, u8 *buf, size_t length);
typedef void (*mei_cl_event_cb_t)(struct mei_cl_device *device,
u32 events, void *context);