diff mbox series

[6/6] USB: sisusbvga: change the local char array to u8 array

Message ID 20200530014820.9967-7-liu.changm@northeastern.edu
State New
Headers show
Series [1/6] USB: sisusbvga: change char to u8 for sisusb_copy_memory | expand

Commit Message

Changming May 30, 2020, 1:48 a.m. UTC
From: Changming Liu <liu.changm@northeastern.edu>

These arrays/data elements are used as unsigned.
So change them from char to u8.

Signed-off-by: Changming Liu <liu.changm@northeastern.edu>
---
 drivers/usb/misc/sisusbvga/sisusb.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c
index 1f21db40fdb5..70a10ad9ae0a 100755
--- a/drivers/usb/misc/sisusbvga/sisusb.c
+++ b/drivers/usb/misc/sisusbvga/sisusb.c
@@ -1752,22 +1752,22 @@  static void sisusb_set_default_mode(struct sisusb_usb_data *sisusb,
 {
 	int i, j, modex, bpp, du;
 	u8 sr31, cr63, tmp8;
-	static const char attrdata[] = {
+	static const u8 attrdata[] = {
 		0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
 		0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
 		0x01, 0x00, 0x00, 0x00
 	};
-	static const char crtcrdata[] = {
+	static const u8 crtcrdata[] = {
 		0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0x0b, 0x3e,
 		0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 		0xea, 0x8c, 0xdf, 0x28, 0x40, 0xe7, 0x04, 0xa3,
 		0xff
 	};
-	static const char grcdata[] = {
+	static const u8 grcdata[] = {
 		0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0f,
 		0xff
 	};
-	static const char crtcdata[] = {
+	static const u8 crtcdata[] = {
 		0x5f, 0x4f, 0x4f, 0x83, 0x55, 0x81, 0x0b, 0x3e,
 		0xe9, 0x8b, 0xdf, 0xe8, 0x0c, 0x00, 0x00, 0x05,
 		0x00
@@ -1880,19 +1880,19 @@  static int sisusb_init_gfxcore(struct sisusb_usb_data *sisusb)
 	int ret = 0, i, j, bw, chab, iret, retry = 3;
 	u8 tmp8, ramtype;
 	u32 tmp32;
-	static const char mclktable[] = {
+	static const u8 mclktable[] = {
 		0x3b, 0x22, 0x01, 143,
 		0x3b, 0x22, 0x01, 143,
 		0x3b, 0x22, 0x01, 143,
 		0x3b, 0x22, 0x01, 143
 	};
-	static const char eclktable[] = {
+	static const u8 eclktable[] = {
 		0x3b, 0x22, 0x01, 143,
 		0x3b, 0x22, 0x01, 143,
 		0x3b, 0x22, 0x01, 143,
 		0x3b, 0x22, 0x01, 143
 	};
-	static const char ramtypetable1[] = {
+	static const u8 ramtypetable1[] = {
 		0x00, 0x04, 0x60, 0x60,
 		0x0f, 0x0f, 0x1f, 0x1f,
 		0xba, 0xba, 0xba, 0xba,
@@ -1901,7 +1901,7 @@  static int sisusb_init_gfxcore(struct sisusb_usb_data *sisusb)
 		0x00, 0x00, 0x02, 0x02,
 		0x30, 0x30, 0x40, 0x40
 	};
-	static const char ramtypetable2[] = {
+	static const u8 ramtypetable2[] = {
 		0x77, 0x77, 0x44, 0x44,
 		0x77, 0x77, 0x44, 0x44,
 		0x00, 0x00, 0x00, 0x00,