]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mdacon: make mda_vram_base u16 *
authorJiri Slaby <jslaby@suse.cz>
Wed, 14 Jun 2017 15:40:56 +0000 (17:40 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 14 Jun 2017 15:40:56 +0000 (17:40 +0200)
commit734f13b11d6fcc4947e75f0e11baf29cb3e161eb
tree03478226b2a8340947eb2099628e192224bdc1e0
parent08cfe9f08109ad7ebe2248d483c683adbb1c9448
mdacon: make mda_vram_base u16 *

Given every user of mda_vram_base expects a pointer, let
mda_vram_base be a pointer to u16.

The offset calculation in mda_detect had to be adjusted by / 2 (due to
different pointer arithmetic now).

We introduce a cast to a value returned from VGA_MAP_MEM. But I will
change VGA_MAP_MEM to return a pointer later too. But vgacon needs a
similar change first.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/console/mdacon.c