From 9336e0699bda8a301cd2bfa37106b6ec5e32012e Mon Sep 17 00:00:00 2001 From: "Wojciech A. Koszek" Date: Sat, 29 Dec 2007 23:26:59 +0000 Subject: Replace explicit calls to video methods with their respective variants implemented with macros. This patch improves code readability. Reasoning behind vidd_* is a sort of "video discipline". List of macros is supposed to be complete--all methods of video_switch ought to have their respective macros from now on. Functionally, this code should be no-op. My intention is to leave current behaviour of touched code as is. No objections: rwatson Silence on: freebsd-current@ Approved by: cognet --- sys/dev/syscons/green/green_saver.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/dev/syscons/green') diff --git a/sys/dev/syscons/green/green_saver.c b/sys/dev/syscons/green/green_saver.c index d6cfe80da689..b03cc7280119 100644 --- a/sys/dev/syscons/green/green_saver.c +++ b/sys/dev/syscons/green/green_saver.c @@ -42,16 +42,15 @@ static int green_saver(video_adapter_t *adp, int blank) { - (*vidsw[adp->va_index]->blank_display)(adp, - (blank) ? V_DISPLAY_STAND_BY - : V_DISPLAY_ON); + vidd_blank_display(adp, + (blank) ? V_DISPLAY_STAND_BY : V_DISPLAY_ON); return 0; } static int green_init(video_adapter_t *adp) { - if ((*vidsw[adp->va_index]->blank_display)(adp, V_DISPLAY_ON) == 0) + if (vidd_blank_display(adp, V_DISPLAY_ON) == 0) return 0; return ENODEV; } -- cgit v1.3