|
@@ -27,8 +27,10 @@ struct serdev_device;
|
|
|
|
|
|
/**
|
|
|
* struct serdev_device_ops - Callback operations for a serdev device
|
|
|
- * @receive_buf: Function called with data received from device.
|
|
|
- * @write_wakeup: Function called when ready to transmit more data.
|
|
|
+ * @receive_buf: Function called with data received from device;
|
|
|
+ * returns number of bytes accepted; may sleep.
|
|
|
+ * @write_wakeup: Function called when ready to transmit more data; must
|
|
|
+ * not sleep.
|
|
|
*/
|
|
|
struct serdev_device_ops {
|
|
|
int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t);
|