diff options
-rw-r--r-- | hw/display/display.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hw/display/display.c b/hw/display/display.c index 2a7135e..acbb421 100644 --- a/hw/display/display.c +++ b/hw/display/display.c @@ -23,7 +23,7 @@ #include <errno.h> #include <linux/limits.h> -#include <hal/hal-display-interface.h> +#include <hal/hal-device-display-interface.h> #include <hal/hal-common-interface.h> #include <libsyscommon/file.h> @@ -107,17 +107,17 @@ static int display_set_brightness(int brightness) static int display_init(void **data) { - hal_backend_display_funcs *display_funcs; + hal_backend_device_display_funcs *device_display_funcs; - display_funcs = calloc(1, sizeof(hal_backend_display_funcs)); - if (!display_funcs) + device_display_funcs = calloc(1, sizeof(hal_backend_device_display_funcs)); + if (!device_display_funcs) return -ENOMEM; - display_funcs->get_max_brightness = display_get_max_brightness; - display_funcs->get_brightness = display_get_brightness; - display_funcs->set_brightness = display_set_brightness; + device_display_funcs->get_max_brightness = display_get_max_brightness; + device_display_funcs->get_brightness = display_get_brightness; + device_display_funcs->set_brightness = display_set_brightness; - *data = (void *)display_funcs; + *data = (void *)device_display_funcs; return 0; } |