Skip to content

Commit

Permalink
amifb: Register Amiga-specific video modes with sysfs
Browse files Browse the repository at this point in the history
Register the Amiga-specific video modes with sysfs, so you can see them in
/sys/class/graphics/fb0/modes and change the video mode by writing to
/sys/class/graphics/fb0/mode.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Jul 21, 2008
1 parent fa7f289 commit db3e528
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/amifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2383,6 +2383,9 @@ int __init amifb_init(void)
goto amifb_error;
}

fb_videomode_to_modelist(ami_modedb, NUM_TOTAL_MODES,
&fb_info.modelist);

round_down_bpp = 0;
chipptr = chipalloc(fb_info.fix.smem_len+
SPRITEMEMSIZE+
Expand Down

0 comments on commit db3e528

Please sign in to comment.