drm: omapdrm: Use unsigned int type
The kernel favours 'unsigned int' over plain 'unsigned'. Replace all occurences of the latter by the former. This avoid lots of checkpatch complaints in patches that touch lines where a plain 'unsigned' is used. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

gecommit door
Tomi Valkeinen

bovenliggende
dfe9cfccb2
commit
d11e5c827a
@@ -86,7 +86,7 @@ struct panel_drv_data {
|
||||
struct workqueue_struct *workqueue;
|
||||
|
||||
bool ulps_enabled;
|
||||
unsigned ulps_timeout;
|
||||
unsigned int ulps_timeout;
|
||||
struct delayed_work ulps_work;
|
||||
};
|
||||
|
||||
@@ -513,7 +513,7 @@ static ssize_t dsicm_show_ulps(struct device *dev,
|
||||
{
|
||||
struct platform_device *pdev = to_platform_device(dev);
|
||||
struct panel_drv_data *ddata = platform_get_drvdata(pdev);
|
||||
unsigned t;
|
||||
unsigned int t;
|
||||
|
||||
mutex_lock(&ddata->lock);
|
||||
t = ddata->ulps_enabled;
|
||||
@@ -560,7 +560,7 @@ static ssize_t dsicm_show_ulps_timeout(struct device *dev,
|
||||
{
|
||||
struct platform_device *pdev = to_platform_device(dev);
|
||||
struct panel_drv_data *ddata = platform_get_drvdata(pdev);
|
||||
unsigned t;
|
||||
unsigned int t;
|
||||
|
||||
mutex_lock(&ddata->lock);
|
||||
t = ddata->ulps_timeout;
|
||||
@@ -1064,7 +1064,7 @@ static int dsicm_memory_read(struct omap_dss_device *dssdev,
|
||||
int r;
|
||||
int first = 1;
|
||||
int plen;
|
||||
unsigned buf_used = 0;
|
||||
unsigned int buf_used = 0;
|
||||
|
||||
if (size < w * h * 3)
|
||||
return -ENOMEM;
|
||||
|
@@ -289,7 +289,7 @@ static void enable_backlight_ctrl(struct panel_drv_data *ddata, int enable)
|
||||
acx565akm_write(ddata, MIPID_CMD_WRITE_CTRL_DISP, (u8 *)&ctrl, 2);
|
||||
}
|
||||
|
||||
static void set_cabc_mode(struct panel_drv_data *ddata, unsigned mode)
|
||||
static void set_cabc_mode(struct panel_drv_data *ddata, unsigned int mode)
|
||||
{
|
||||
u16 cabc_ctrl;
|
||||
|
||||
@@ -303,12 +303,12 @@ static void set_cabc_mode(struct panel_drv_data *ddata, unsigned mode)
|
||||
acx565akm_write(ddata, MIPID_CMD_WRITE_CABC, (u8 *)&cabc_ctrl, 2);
|
||||
}
|
||||
|
||||
static unsigned get_cabc_mode(struct panel_drv_data *ddata)
|
||||
static unsigned int get_cabc_mode(struct panel_drv_data *ddata)
|
||||
{
|
||||
return ddata->cabc_mode;
|
||||
}
|
||||
|
||||
static unsigned get_hw_cabc_mode(struct panel_drv_data *ddata)
|
||||
static unsigned int get_hw_cabc_mode(struct panel_drv_data *ddata)
|
||||
{
|
||||
u8 cabc_ctrl;
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user