android_kernel_xiaomi_sm8350/drivers/video/via
Florian Tobias Schandinat 5016af53eb viafb: cleanup viafb_cursor
Clean the hardware cursor handling up.

The most notable change is that it no longer buffers the values in
viacursor but uses the ones in cursor instead as they are guaranteed to be
always valid.

Furthermore it uses local instead global variables where possible, moves
the cursor variable in shared as only one hardware cursor is supported and
returns an error if memory allocation fails.  Last but not least it fixes
a too small buffer (as u32 has only 4 and not 32 bytes) but this did not
produce any known problems.

This is mostly a code cleanup, no negative runtime changes are expected.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Cc: Joseph Chan <JosephChan@via.com.tw>
Cc: Harald Welte <laforge@gnumonks.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-23 07:39:53 -07:00
..
accel.c viafb: cleanup viafb_cursor 2009-09-23 07:39:53 -07:00
accel.h viafb: 2D engine rewrite 2009-09-23 07:39:52 -07:00
chip.h
debug.h
dvi.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
dvi.h
global.c viafb: cleanup viafb_cursor 2009-09-23 07:39:53 -07:00
global.h viafb: cleanup viafb_cursor 2009-09-23 07:39:53 -07:00
hw.c viafb: another small cleanup of viafb_par 2009-09-23 07:39:52 -07:00
hw.h viafb: another small cleanup of viafb_par 2009-09-23 07:39:52 -07:00
iface.c
iface.h
ioctl.c
ioctl.h viafb: remove unused video device stuff 2009-09-23 07:39:52 -07:00
lcd.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
lcd.h
lcdtbl.h
Makefile
share.h
tbl1636.c
tbl1636.h
tblDPASetting.c
tblDPASetting.h
via_i2c.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
via_i2c.h
via_utility.c
via_utility.h
viafbdev.c viafb: cleanup viafb_cursor 2009-09-23 07:39:53 -07:00
viafbdev.h viafb: cleanup viafb_cursor 2009-09-23 07:39:53 -07:00
viamode.c viafb: remove LVDS initialization 2009-09-23 07:39:52 -07:00
viamode.h viafb: clean up viamode.h 2009-09-23 07:39:52 -07:00
vt1636.c viafb: improve viafb_par 2009-09-23 07:39:52 -07:00
vt1636.h