smscufx: change edid data to u8 instead of char
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Sep 2011 07:16:24 +0000 (10:16 +0300)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Mon, 3 Oct 2011 15:52:05 +0000 (15:52 +0000)
commit261e767628bb5971b9032439818237cc8511ea94
tree11dccee774a968ad9c11c9b178b0e4979eddb4ea
parent2b7a905dd0d24d14a1099653ba63b7113a82fc54
smscufx: change edid data to u8 instead of char

Having "edid" as char caused a problem in ufx_read_edid() where we
compared "edid[i] != 0xFF".  Because of the type difference, the
condition was never true and the error checking failed.

Also I added a __user notation to silence a sparse complaint.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/smscufx.c