diff options
author | Amit Shah <amit.shah@redhat.com> | 2009-10-07 18:31:16 +0530 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-21 13:35:37 -0500 |
commit | b6b8df560c4cf7de53158ae91e2c0d3cc971f01e (patch) | |
tree | 123f129747b1d0b4e5db80757594d16a438e8b80 /hw | |
parent | 69795d6769910eaee4416470744e65ae066aeb54 (diff) |
char: rename CHR_EVENT_RESET to CHR_EVENT_OPENED
The char event RESET is emitted when a char device is opened.
Give it a better name.
Patchworks-ID: 35287
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/baum.c | 2 | ||||
-rw-r--r-- | hw/usb-serial.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -475,7 +475,7 @@ static void baum_send_event(CharDriverState *chr, int event) switch (event) { case CHR_EVENT_BREAK: break; - case CHR_EVENT_RESET: + case CHR_EVENT_OPENED: /* Reset state */ baum->in_buf_used = 0; break; diff --git a/hw/usb-serial.c b/hw/usb-serial.c index e2379c4d5e..d02f6b2867 100644 --- a/hw/usb-serial.c +++ b/hw/usb-serial.c @@ -516,7 +516,7 @@ static void usb_serial_event(void *opaque, int event) break; case CHR_EVENT_FOCUS: break; - case CHR_EVENT_RESET: + case CHR_EVENT_OPENED: usb_serial_reset(s); /* TODO: Reset USB port */ break; |