Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3120076 authored by Clifton Barnes's avatar Clifton Barnes Committed by Greg Kroah-Hartman
Browse files

staging: xgifb: fix bare use of 'unsigned'



fix checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of
'unsigned''

Signed-off-by: default avatarClifton Barnes <clifton.a.barnes@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3f0692a
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1130,8 +1130,9 @@ static int XGIfb_get_cmap_len(const struct fb_var_screeninfo *var)
	return (var->bits_per_pixel == 8) ? 256 : 16;
	return (var->bits_per_pixel == 8) ? 256 : 16;
}
}


static int XGIfb_setcolreg(unsigned regno, unsigned red, unsigned green,
static int XGIfb_setcolreg(unsigned int regno, unsigned int red,
		unsigned blue, unsigned transp, struct fb_info *info)
			   unsigned int green, unsigned int blue,
			   unsigned int transp, struct fb_info *info)
{
{
	struct xgifb_video_info *xgifb_info = info->par;
	struct xgifb_video_info *xgifb_info = info->par;


+5 −3
Original line number Original line Diff line number Diff line
@@ -13,7 +13,7 @@ static inline u8 xgifb_reg_get(unsigned long port, u8 index)
}
}


static inline void xgifb_reg_and_or(unsigned long port, u8 index,
static inline void xgifb_reg_and_or(unsigned long port, u8 index,
				    unsigned data_and, unsigned data_or)
				    unsigned int data_and, unsigned int data_or)
{
{
	u8 temp;
	u8 temp;


@@ -22,7 +22,8 @@ static inline void xgifb_reg_and_or(unsigned long port, u8 index,
	xgifb_reg_set(port, index, temp);
	xgifb_reg_set(port, index, temp);
}
}


static inline void xgifb_reg_and(unsigned long port, u8 index, unsigned data_and)
static inline void xgifb_reg_and(unsigned long port, u8 index,
				 unsigned int data_and)
{
{
	u8 temp;
	u8 temp;


@@ -31,7 +32,8 @@ static inline void xgifb_reg_and(unsigned long port, u8 index, unsigned data_and
	xgifb_reg_set(port, index, temp);
	xgifb_reg_set(port, index, temp);
}
}


static inline void xgifb_reg_or(unsigned long port, u8 index, unsigned data_or)
static inline void xgifb_reg_or(unsigned long port, u8 index,
				unsigned int data_or)
{
{
	u8 temp;
	u8 temp;