OSDN Git Service

hw/char/spapr_vty: Return amount of free buffer entries in vty_can_receive()
authorThomas Huth <thuth@redhat.com>
Fri, 18 Nov 2016 09:09:37 +0000 (10:09 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 01:00:48 +0000 (12:00 +1100)
commit8a273cbe53221d28abfc98f33a0d057b26e53d6a
tree4cc83f7dbbfacf62b6bb95f98c950f636568071f
parent0d28aa197dd91d1bd3bc1bdc46b0eca306460040
hw/char/spapr_vty: Return amount of free buffer entries in vty_can_receive()

The can_receive() callbacks of the character devices should return
the amount of characters that can be accepted at once, not just a
boolean value (which rather means only one character at a time).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/char/spapr_vty.c