diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-01-05 15:29:48 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-27 18:07:59 +0100 |
commit | fc6d0b86c8e5486f7254e3f93fe6d8b915cfb4c1 (patch) | |
tree | 6b6dad1140a4086253983a2d45955238ce138610 /backends | |
parent | 6f974c843c7c3d142f3ce594498431ba2ac19627 (diff) |
baum: use a common prefix for chr callbacks
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/baum.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/backends/baum.c b/backends/baum.c index 23d3c4aeaa..8842936417 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -253,7 +253,7 @@ static int baum_deferred_init(BaumChardev *baum) } /* The serial port can receive more of our data */ -static void baum_accept_input(struct Chardev *chr) +static void baum_chr_accept_input(struct Chardev *chr) { BaumChardev *baum = (BaumChardev *)chr; int room, first; @@ -470,7 +470,7 @@ static int baum_eat_packet(BaumChardev *baum, const uint8_t *buf, int len) } /* The other end is writing some data. Store it and try to interpret */ -static int baum_write(Chardev *chr, const uint8_t *buf, int len) +static int baum_chr_write(Chardev *chr, const uint8_t *buf, int len) { BaumChardev *baum = (BaumChardev *)chr; int tocopy, cur, eaten, orig_len = len; @@ -613,7 +613,7 @@ static void baum_chr_read(void *opaque) } } -static void baum_free(struct Chardev *chr) +static void baum_chr_free(struct Chardev *chr) { BaumChardev *baum = (BaumChardev *)chr; @@ -624,7 +624,7 @@ static void baum_free(struct Chardev *chr) } } -static Chardev *chr_baum_init(const CharDriver *driver, +static Chardev *baum_chr_init(const CharDriver *driver, const char *id, ChardevBackend *backend, ChardevReturn *ret, @@ -670,10 +670,10 @@ static void register_types(void) static const CharDriver driver = { .instance_size = sizeof(BaumChardev), .kind = CHARDEV_BACKEND_KIND_BRAILLE, - .create = chr_baum_init, - .chr_write = baum_write, - .chr_accept_input = baum_accept_input, - .chr_free = baum_free, + .create = baum_chr_init, + .chr_write = baum_chr_write, + .chr_accept_input = baum_chr_accept_input, + .chr_free = baum_chr_free, }; register_char_driver(&driver); |