From 7a58673a4eb00f386dcea252d3015b32847fbc17 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 24 Jul 2017 07:10:19 +0200 Subject: added print_name method to all drivers removed superfluos empty methods in abstract drivers moved printing of info to method in rtl8139 driver --- src/drivers/hdi/mouse.c | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) (limited to 'src/drivers/hdi/mouse.c') diff --git a/src/drivers/hdi/mouse.c b/src/drivers/hdi/mouse.c index a0b62f9..c48dba6 100644 --- a/src/drivers/hdi/mouse.c +++ b/src/drivers/hdi/mouse.c @@ -5,10 +5,11 @@ static mouse_vtable_t const mouse_vtable = { { - mouse_activate, - mouse_deactivate, - mouse_deinit, - mouse_print_info + driver_activate, + driver_deactivate, + driver_deinit, + driver_print_name, + driver_print_info }, mouse_set_resolution, mouse_set_position @@ -25,26 +26,6 @@ void mouse_init( mouse_t *mouse, mouse_event_handler_t handler, interrupt_t *int ((driver_t *)mouse)->vtable = (driver_vtable_t *)&mouse_vtable; } -void mouse_deinit( void *obj ) -{ - // nothing to be done -} - -void mouse_activate( void *obj ) -{ - kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ ); -} - -void mouse_deactivate( void *obj ) -{ - kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ ); -} - -void mouse_print_info( void *obj ) -{ - kernel_panic( "Calling abstract method in file %s at line %d.", __FILE__, __LINE__ ); -} - void mouse_set_resolution( void *obj, const uint32_t res_x, const uint32_t res_y ) { mouse_t *mouse = (mouse_t *)obj; -- cgit v1.2.3-54-g00ecf