staging: sm750fb: fix a type issue in sm750_set_chip_type()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 26 Nov 2016 10:20:58 +0000 (13:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Nov 2016 20:57:14 +0000 (21:57 +0100)
"revId" needs to be unsigned because we use it to test:

if (revId == SM750LE_REVISION_ID) {

and SM750LE_REVISION_ID is ((unsigned char )0xfe).

Fixes: 81dee67e215b ("staging: sm750fb: add sm750 to staging")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c
drivers/staging/sm750fb/ddk750_chip.h

index 94f59f446322b6551844ae470bc5fe8d48fb79d4..f59ce5c0867dc375497e15de5cfa23d0c86c0b0b 100644 (file)
@@ -14,7 +14,7 @@ logical_chip_type_t sm750_get_chip_type(void)
        return chip;
 }
 
-void sm750_set_chip_type(unsigned short devId, char revId)
+void sm750_set_chip_type(unsigned short devId, u8 revId)
 {
        if (devId == 0x718)
                chip = SM718;
index e97e8592d97370aae7a2cb369e7f062e6dd08036..e63b8b2938168b6469bb57b32e0e89e4e36701ba 100644 (file)
@@ -87,7 +87,7 @@ struct initchip_param {
 };
 
 logical_chip_type_t sm750_get_chip_type(void);
-void sm750_set_chip_type(unsigned short devId, char revId);
+void sm750_set_chip_type(unsigned short devId, u8 revId);
 unsigned int sm750_calc_pll_value(unsigned int request, struct  pll_value *pll);
 unsigned int sm750_format_pll_reg(struct pll_value *pPLL);
 unsigned int ddk750_get_vm_size(void);