OSDN Git Service

char: make null_chr_write() the default method
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 12 Dec 2016 10:41:40 +0000 (13:41 +0300)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 31 Jan 2017 19:31:20 +0000 (23:31 +0400)
commiteb314a9497dbbbd14795a6cdba27eb3131ee7e25
tree6ec49e35c54db8228e76374bbd1be9cc4f8c5a0e
parent32d955a4221535a1a2d8730e0520561ad7531efd
char: make null_chr_write() the default method

All chardev must implement chr_write(), but parallel and null chardev
both use null_chr_write(). Move it to the base class, so we don't need
to export the function when splitting the chardev in respective files.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
chardev/char.c