Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Laurent Pinchart and committed by
Tomi Valkeinen
d11e5c82 dfe9cfcc

+102 -101
+4 -4
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c
··· 86 86 struct workqueue_struct *workqueue; 87 87 88 88 bool ulps_enabled; 89 - unsigned ulps_timeout; 89 + unsigned int ulps_timeout; 90 90 struct delayed_work ulps_work; 91 91 }; 92 92 ··· 513 513 { 514 514 struct platform_device *pdev = to_platform_device(dev); 515 515 struct panel_drv_data *ddata = platform_get_drvdata(pdev); 516 - unsigned t; 516 + unsigned int t; 517 517 518 518 mutex_lock(&ddata->lock); 519 519 t = ddata->ulps_enabled; ··· 560 560 { 561 561 struct platform_device *pdev = to_platform_device(dev); 562 562 struct panel_drv_data *ddata = platform_get_drvdata(pdev); 563 - unsigned t; 563 + unsigned int t; 564 564 565 565 mutex_lock(&ddata->lock); 566 566 t = ddata->ulps_timeout; ··· 1064 1064 int r; 1065 1065 int first = 1; 1066 1066 int plen; 1067 - unsigned buf_used = 0; 1067 + unsigned int buf_used = 0; 1068 1068 1069 1069 if (size < w * h * 3) 1070 1070 return -ENOMEM;
+3 -3
drivers/gpu/drm/omapdrm/displays/panel-sony-acx565akm.c
··· 289 289 acx565akm_write(ddata, MIPID_CMD_WRITE_CTRL_DISP, (u8 *)&ctrl, 2); 290 290 } 291 291 292 - static void set_cabc_mode(struct panel_drv_data *ddata, unsigned mode) 292 + static void set_cabc_mode(struct panel_drv_data *ddata, unsigned int mode) 293 293 { 294 294 u16 cabc_ctrl; 295 295 ··· 303 303 acx565akm_write(ddata, MIPID_CMD_WRITE_CABC, (u8 *)&cabc_ctrl, 2); 304 304 } 305 305 306 - static unsigned get_cabc_mode(struct panel_drv_data *ddata) 306 + static unsigned int get_cabc_mode(struct panel_drv_data *ddata) 307 307 { 308 308 return ddata->cabc_mode; 309 309 } 310 310 311 - static unsigned get_hw_cabc_mode(struct panel_drv_data *ddata) 311 + static unsigned int get_hw_cabc_mode(struct panel_drv_data *ddata) 312 312 { 313 313 u8 cabc_ctrl; 314 314
+12 -13
drivers/gpu/drm/omapdrm/dss/dispc.c
··· 969 969 static void dispc_ovl_setup_global_alpha(enum omap_plane_id plane, 970 970 enum omap_overlay_caps caps, u8 global_alpha) 971 971 { 972 - static const unsigned shifts[] = { 0, 8, 16, 24, }; 972 + static const unsigned int shifts[] = { 0, 8, 16, 24, }; 973 973 int shift; 974 974 975 975 if ((caps & OMAP_DSS_OVL_CAP_GLOBAL_ALPHA) == 0) ··· 1197 1197 static void dispc_ovl_set_burst_size(enum omap_plane_id plane, 1198 1198 enum omap_burst_size burst_size) 1199 1199 { 1200 - static const unsigned shifts[] = { 6, 14, 14, 14, 14, }; 1200 + static const unsigned int shifts[] = { 6, 14, 14, 14, 14, }; 1201 1201 int shift; 1202 1202 1203 1203 shift = shifts[plane]; ··· 1285 1285 static void dispc_ovl_enable_replication(enum omap_plane_id plane, 1286 1286 enum omap_overlay_caps caps, bool enable) 1287 1287 { 1288 - static const unsigned shifts[] = { 5, 10, 10, 10 }; 1288 + static const unsigned int shifts[] = { 5, 10, 10, 10 }; 1289 1289 int shift; 1290 1290 1291 1291 if ((caps & OMAP_DSS_OVL_CAP_REPLICATION) == 0) ··· 1450 1450 * All sizes are in bytes. Both the buffer and burst are made of 1451 1451 * buffer_units, and the fifo thresholds must be buffer_unit aligned. 1452 1452 */ 1453 - 1454 - unsigned buf_unit = dispc.feat->buffer_size_unit; 1455 - unsigned ovl_fifo_size, total_fifo_size, burst_size; 1453 + unsigned int buf_unit = dispc.feat->buffer_size_unit; 1454 + unsigned int ovl_fifo_size, total_fifo_size, burst_size; 1456 1455 int i; 1457 1456 1458 1457 burst_size = dispc_ovl_get_burst_size(plane); ··· 2005 2006 } 2006 2007 2007 2008 static void calc_offset(u16 screen_width, u16 width, 2008 - u32 fourcc, bool fieldmode, 2009 - unsigned int field_offset, unsigned *offset0, unsigned *offset1, 2009 + u32 fourcc, bool fieldmode, unsigned int field_offset, 2010 + unsigned int *offset0, unsigned int *offset1, 2010 2011 s32 *row_inc, s32 *pix_inc, int x_predecim, int y_predecim, 2011 2012 enum omap_dss_rotation_type rotation_type, u8 rotation) 2012 2013 { ··· 2476 2477 bool five_taps = true; 2477 2478 bool fieldmode = false; 2478 2479 int r, cconv = 0; 2479 - unsigned offset0, offset1; 2480 + unsigned int offset0, offset1; 2480 2481 s32 row_inc; 2481 2482 s32 pix_inc; 2482 2483 u16 frame_width, frame_height; ··· 3039 3040 static void dispc_mgr_set_timings(enum omap_channel channel, 3040 3041 const struct videomode *vm) 3041 3042 { 3042 - unsigned xtot, ytot; 3043 + unsigned int xtot, ytot; 3043 3044 unsigned long ht, vt; 3044 3045 struct videomode t = *vm; 3045 3046 ··· 3118 3119 r = dss_get_dispc_clk_rate(); 3119 3120 } else { 3120 3121 struct dss_pll *pll; 3121 - unsigned clkout_idx; 3122 + unsigned int clkout_idx; 3122 3123 3123 3124 pll = dss_pll_find_by_src(src); 3124 3125 clkout_idx = dss_pll_get_clkout_idx_for_src(src); ··· 3145 3146 r = dss_get_dispc_clk_rate(); 3146 3147 } else { 3147 3148 struct dss_pll *pll; 3148 - unsigned clkout_idx; 3149 + unsigned int clkout_idx; 3149 3150 3150 3151 pll = dss_pll_find_by_src(src); 3151 3152 clkout_idx = dss_pll_get_clkout_idx_for_src(src); ··· 3486 3487 unsigned long pck, lck; 3487 3488 unsigned long lck_max; 3488 3489 unsigned long pckd_hw_min, pckd_hw_max; 3489 - unsigned min_fck_per_pck; 3490 + unsigned int min_fck_per_pck; 3490 3491 unsigned long fck; 3491 3492 3492 3493 #ifdef CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK
+1 -1
drivers/gpu/drm/omapdrm/dss/dpi.c
··· 141 141 142 142 struct dpi_clk_calc_ctx { 143 143 struct dss_pll *pll; 144 - unsigned clkout_idx; 144 + unsigned int clkout_idx; 145 145 146 146 /* inputs */ 147 147
+50 -48
drivers/gpu/drm/omapdrm/dss/dsi.c
··· 269 269 270 270 struct dsi_irq_stats { 271 271 unsigned long last_reset; 272 - unsigned irq_count; 273 - unsigned dsi_irqs[32]; 274 - unsigned vc_irqs[4][32]; 275 - unsigned cio_irqs[32]; 272 + unsigned int irq_count; 273 + unsigned int dsi_irqs[32]; 274 + unsigned int vc_irqs[4][32]; 275 + unsigned int cio_irqs[32]; 276 276 }; 277 277 278 278 struct dsi_isr_tables { ··· 373 373 374 374 int update_channel; 375 375 #ifdef DSI_PERF_MEASURE 376 - unsigned update_bytes; 376 + unsigned int update_bytes; 377 377 #endif 378 378 379 379 bool te_enabled; ··· 406 406 struct dsi_irq_stats irq_stats; 407 407 #endif 408 408 409 - unsigned num_lanes_supported; 410 - unsigned line_buffer_size; 409 + unsigned int num_lanes_supported; 410 + unsigned int line_buffer_size; 411 411 412 412 struct dsi_lane_config lanes[DSI_MAX_NR_LANES]; 413 - unsigned num_lanes_used; 413 + unsigned int num_lanes_used; 414 414 415 - unsigned scp_clk_refcount; 415 + unsigned int scp_clk_refcount; 416 416 417 417 struct dss_lcd_mgr_config mgr_config; 418 418 struct videomode vm; ··· 782 782 } 783 783 784 784 static void dsi_call_isrs(struct dsi_isr_data *isr_array, 785 - unsigned isr_array_size, u32 irqstatus) 785 + unsigned int isr_array_size, u32 irqstatus) 786 786 { 787 787 struct dsi_isr_data *isr_data; 788 788 int i; ··· 891 891 /* dsi->irq_lock has to be locked by the caller */ 892 892 static void _omap_dsi_configure_irqs(struct platform_device *dsidev, 893 893 struct dsi_isr_data *isr_array, 894 - unsigned isr_array_size, u32 default_mask, 894 + unsigned int isr_array_size, u32 default_mask, 895 895 const struct dsi_reg enable_reg, 896 896 const struct dsi_reg status_reg) 897 897 { ··· 975 975 } 976 976 977 977 static int _dsi_register_isr(omap_dsi_isr_t isr, void *arg, u32 mask, 978 - struct dsi_isr_data *isr_array, unsigned isr_array_size) 978 + struct dsi_isr_data *isr_array, unsigned int isr_array_size) 979 979 { 980 980 struct dsi_isr_data *isr_data; 981 981 int free_idx; ··· 1009 1009 } 1010 1010 1011 1011 static int _dsi_unregister_isr(omap_dsi_isr_t isr, void *arg, u32 mask, 1012 - struct dsi_isr_data *isr_array, unsigned isr_array_size) 1012 + struct dsi_isr_data *isr_array, unsigned int isr_array_size) 1013 1013 { 1014 1014 struct dsi_isr_data *isr_data; 1015 1015 int i; ··· 1301 1301 unsigned long lp_clk_min, unsigned long lp_clk_max, 1302 1302 struct dsi_lp_clock_info *lp_cinfo) 1303 1303 { 1304 - unsigned lp_clk_div; 1304 + unsigned int lp_clk_div; 1305 1305 unsigned long lp_clk; 1306 1306 1307 1307 lp_clk_div = DIV_ROUND_UP(dsi_fclk, lp_clk_max * 2); ··· 1320 1320 { 1321 1321 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 1322 1322 unsigned long dsi_fclk; 1323 - unsigned lp_clk_div; 1323 + unsigned int lp_clk_div; 1324 1324 unsigned long lp_clk; 1325 - unsigned lpdiv_max = dsi->data->max_pll_lpdiv; 1325 + unsigned int lpdiv_max = dsi->data->max_pll_lpdiv; 1326 1326 1327 1327 1328 1328 lp_clk_div = dsi->user_lp_cinfo.lp_clk_div; ··· 1798 1798 return 0; 1799 1799 } 1800 1800 1801 - static unsigned dsi_get_line_buf_size(struct platform_device *dsidev) 1801 + static unsigned int dsi_get_line_buf_size(struct platform_device *dsidev) 1802 1802 { 1803 1803 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 1804 1804 int val; ··· 1850 1850 r = dsi_read_reg(dsidev, DSI_COMPLEXIO_CFG1); 1851 1851 1852 1852 for (i = 0; i < dsi->num_lanes_used; ++i) { 1853 - unsigned offset = offsets[i]; 1854 - unsigned polarity, lane_number; 1855 - unsigned t; 1853 + unsigned int offset = offsets[i]; 1854 + unsigned int polarity, lane_number; 1855 + unsigned int t; 1856 1856 1857 1857 for (t = 0; t < dsi->num_lanes_supported; ++t) 1858 1858 if (dsi->lanes[t].function == functions[i]) ··· 1870 1870 1871 1871 /* clear the unused lanes */ 1872 1872 for (; i < dsi->num_lanes_supported; ++i) { 1873 - unsigned offset = offsets[i]; 1873 + unsigned int offset = offsets[i]; 1874 1874 1875 1875 r = FLD_MOD(r, 0, offset + 2, offset); 1876 1876 r = FLD_MOD(r, 0, offset + 3, offset + 3); ··· 1881 1881 return 0; 1882 1882 } 1883 1883 1884 - static inline unsigned ns2ddr(struct platform_device *dsidev, unsigned ns) 1884 + static inline unsigned int ns2ddr(struct platform_device *dsidev, 1885 + unsigned int ns) 1885 1886 { 1886 1887 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 1887 1888 ··· 1891 1890 return (ns * (ddr_clk / 1000 / 1000) + 999) / 1000; 1892 1891 } 1893 1892 1894 - static inline unsigned ddr2ns(struct platform_device *dsidev, unsigned ddr) 1893 + static inline unsigned int ddr2ns(struct platform_device *dsidev, 1894 + unsigned int ddr) 1895 1895 { 1896 1896 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 1897 1897 ··· 1980 1978 1981 1979 /* lane masks have lane 0 at lsb. mask_p for positive lines, n for negative */ 1982 1980 static void dsi_cio_enable_lane_override(struct platform_device *dsidev, 1983 - unsigned mask_p, unsigned mask_n) 1981 + unsigned int mask_p, unsigned int mask_n) 1984 1982 { 1985 1983 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 1986 1984 int i; ··· 1990 1988 l = 0; 1991 1989 1992 1990 for (i = 0; i < dsi->num_lanes_supported; ++i) { 1993 - unsigned p = dsi->lanes[i].polarity; 1991 + unsigned int p = dsi->lanes[i].polarity; 1994 1992 1995 1993 if (mask_p & (1 << i)) 1996 1994 l |= 1 << (i * 2 + (p ? 0 : 1)); ··· 2077 2075 } 2078 2076 2079 2077 /* return bitmask of enabled lanes, lane0 being the lsb */ 2080 - static unsigned dsi_get_lane_mask(struct platform_device *dsidev) 2078 + static unsigned int dsi_get_lane_mask(struct platform_device *dsidev) 2081 2079 { 2082 2080 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 2083 - unsigned mask = 0; 2081 + unsigned int mask = 0; 2084 2082 int i; 2085 2083 2086 2084 for (i = 0; i < dsi->num_lanes_supported; ++i) { ··· 2206 2204 dsi_write_reg(dsidev, DSI_TIMING1, l); 2207 2205 2208 2206 if (dsi->ulps_enabled) { 2209 - unsigned mask_p; 2207 + unsigned int mask_p; 2210 2208 int i; 2211 2209 2212 2210 DSSDBG("manual ulps exit\n"); ··· 3225 3223 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 3226 3224 DECLARE_COMPLETION_ONSTACK(completion); 3227 3225 int r, i; 3228 - unsigned mask; 3226 + unsigned int mask; 3229 3227 3230 3228 DSSDBG("Entering ULPS"); 3231 3229 ··· 3315 3313 } 3316 3314 3317 3315 static void dsi_set_lp_rx_timeout(struct platform_device *dsidev, 3318 - unsigned ticks, bool x4, bool x16) 3316 + unsigned int ticks, bool x4, bool x16) 3319 3317 { 3320 3318 unsigned long fck; 3321 3319 unsigned long total_ticks; ··· 3341 3339 (total_ticks * 1000) / (fck / 1000 / 1000)); 3342 3340 } 3343 3341 3344 - static void dsi_set_ta_timeout(struct platform_device *dsidev, unsigned ticks, 3345 - bool x8, bool x16) 3342 + static void dsi_set_ta_timeout(struct platform_device *dsidev, 3343 + unsigned int ticks, bool x8, bool x16) 3346 3344 { 3347 3345 unsigned long fck; 3348 3346 unsigned long total_ticks; ··· 3369 3367 } 3370 3368 3371 3369 static void dsi_set_stop_state_counter(struct platform_device *dsidev, 3372 - unsigned ticks, bool x4, bool x16) 3370 + unsigned int ticks, bool x4, bool x16) 3373 3371 { 3374 3372 unsigned long fck; 3375 3373 unsigned long total_ticks; ··· 3396 3394 } 3397 3395 3398 3396 static void dsi_set_hs_tx_timeout(struct platform_device *dsidev, 3399 - unsigned ticks, bool x4, bool x16) 3397 + unsigned int ticks, bool x4, bool x16) 3400 3398 { 3401 3399 unsigned long fck; 3402 3400 unsigned long total_ticks; ··· 3742 3740 static void dsi_proto_timings(struct platform_device *dsidev) 3743 3741 { 3744 3742 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 3745 - unsigned tlpx, tclk_zero, tclk_prepare, tclk_trail; 3746 - unsigned tclk_pre, tclk_post; 3747 - unsigned ths_prepare, ths_prepare_ths_zero, ths_zero; 3748 - unsigned ths_trail, ths_exit; 3749 - unsigned ddr_clk_pre, ddr_clk_post; 3750 - unsigned enter_hs_mode_lat, exit_hs_mode_lat; 3751 - unsigned ths_eot; 3743 + unsigned int tlpx, tclk_zero, tclk_prepare, tclk_trail; 3744 + unsigned int tclk_pre, tclk_post; 3745 + unsigned int ths_prepare, ths_prepare_ths_zero, ths_zero; 3746 + unsigned int ths_trail, ths_exit; 3747 + unsigned int ddr_clk_pre, ddr_clk_post; 3748 + unsigned int enter_hs_mode_lat, exit_hs_mode_lat; 3749 + unsigned int ths_eot; 3752 3750 int ndl = dsi->num_lanes_used - 1; 3753 3751 u32 r; 3754 3752 ··· 4016 4014 { 4017 4015 struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); 4018 4016 enum omap_channel dispc_channel = dsi->output.dispc_channel; 4019 - unsigned bytespp; 4020 - unsigned bytespl; 4021 - unsigned bytespf; 4022 - unsigned total_len; 4023 - unsigned packet_payload; 4024 - unsigned packet_len; 4017 + unsigned int bytespp; 4018 + unsigned int bytespl; 4019 + unsigned int bytespf; 4020 + unsigned int total_len; 4021 + unsigned int packet_payload; 4022 + unsigned int packet_len; 4025 4023 u32 l; 4026 4024 int r; 4027 4025 const unsigned channel = dsi->update_channel; 4028 - const unsigned line_buf_size = dsi->line_buffer_size; 4026 + const unsigned int line_buf_size = dsi->line_buffer_size; 4029 4027 u16 w = dsi->vm.hactive; 4030 4028 u16 h = dsi->vm.vactive; 4031 4029
+6 -6
drivers/gpu/drm/omapdrm/dss/dss.c
··· 181 181 182 182 void dss_ctrl_pll_enable(enum dss_pll_id pll_id, bool enable) 183 183 { 184 - unsigned shift; 185 - unsigned val; 184 + unsigned int shift; 185 + unsigned int val; 186 186 187 187 if (!dss.syscon_pll_ctrl) 188 188 return; ··· 211 211 static int dss_ctrl_pll_set_control_mux(enum dss_clk_source clk_src, 212 212 enum omap_channel channel) 213 213 { 214 - unsigned shift, val; 214 + unsigned int shift, val; 215 215 216 216 if (!dss.syscon_pll_ctrl) 217 217 return -EINVAL; ··· 620 620 unsigned long fck_hw_max; 621 621 unsigned long fckd_hw_max; 622 622 unsigned long prate; 623 - unsigned m; 623 + unsigned int m; 624 624 625 625 fck_hw_max = dss.feat->fck_freq_max; 626 626 627 627 if (dss.parent_clk == NULL) { 628 - unsigned pckd; 628 + unsigned int pckd; 629 629 630 630 pckd = fck_hw_max / pck; 631 631 ··· 694 694 { 695 695 unsigned long max_dss_fck, prate; 696 696 unsigned long fck; 697 - unsigned fck_div; 697 + unsigned int fck_div; 698 698 int r; 699 699 700 700 max_dss_fck = dss.feat->fck_freq_max;
+6 -6
drivers/gpu/drm/omapdrm/dss/dss.h
··· 167 167 struct dss_pll_hw { 168 168 enum dss_pll_type type; 169 169 170 - unsigned n_max; 171 - unsigned m_min; 172 - unsigned m_max; 173 - unsigned mX_max; 170 + unsigned int n_max; 171 + unsigned int m_min; 172 + unsigned int m_max; 173 + unsigned int mX_max; 174 174 175 175 unsigned long fint_min, fint_max; 176 176 unsigned long clkdco_min, clkdco_low, clkdco_max; ··· 390 390 bool mem_to_mem, const struct videomode *vm); 391 391 392 392 #ifdef CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS 393 - static inline void dss_collect_irq_stats(u32 irqstatus, unsigned *irq_arr) 393 + static inline void dss_collect_irq_stats(u32 irqstatus, unsigned int *irq_arr) 394 394 { 395 395 int b; 396 396 for (b = 0; b < 32; ++b) { ··· 410 410 void dss_pll_unregister(struct dss_pll *pll); 411 411 struct dss_pll *dss_pll_find(const char *name); 412 412 struct dss_pll *dss_pll_find_by_src(enum dss_clk_source src); 413 - unsigned dss_pll_get_clkout_idx_for_src(enum dss_clk_source src); 413 + unsigned int dss_pll_get_clkout_idx_for_src(enum dss_clk_source src); 414 414 int dss_pll_enable(struct dss_pll *pll); 415 415 void dss_pll_disable(struct dss_pll *pll); 416 416 int dss_pll_set_config(struct dss_pll *pll,
+1 -1
drivers/gpu/drm/omapdrm/dss/hdmi4.c
··· 180 180 enum omap_channel channel = dssdev->dispc_channel; 181 181 struct hdmi_wp_data *wp = &hdmi.wp; 182 182 struct dss_pll_clock_info hdmi_cinfo = { 0 }; 183 - unsigned pc; 183 + unsigned int pc; 184 184 185 185 r = hdmi_power_on_core(dssdev); 186 186 if (r)
+1 -1
drivers/gpu/drm/omapdrm/dss/hdmi5.c
··· 175 175 struct videomode *vm; 176 176 enum omap_channel channel = dssdev->dispc_channel; 177 177 struct dss_pll_clock_info hdmi_cinfo = { 0 }; 178 - unsigned pc; 178 + unsigned int pc; 179 179 180 180 r = hdmi_power_on_core(dssdev); 181 181 if (r)
+12 -12
drivers/gpu/drm/omapdrm/dss/hdmi5_core.c
··· 50 50 { 51 51 void __iomem *base = core->base; 52 52 const unsigned long long iclk = 266000000; /* DSS L3 ICLK */ 53 - const unsigned ss_scl_high = 4600; /* ns */ 54 - const unsigned ss_scl_low = 5400; /* ns */ 55 - const unsigned fs_scl_high = 600; /* ns */ 56 - const unsigned fs_scl_low = 1300; /* ns */ 57 - const unsigned sda_hold = 1000; /* ns */ 58 - const unsigned sfr_div = 10; 53 + const unsigned int ss_scl_high = 4600; /* ns */ 54 + const unsigned int ss_scl_low = 5400; /* ns */ 55 + const unsigned int fs_scl_high = 600; /* ns */ 56 + const unsigned int fs_scl_low = 1300; /* ns */ 57 + const unsigned int sda_hold = 1000; /* ns */ 58 + const unsigned int sfr_div = 10; 59 59 unsigned long long sfr; 60 - unsigned v; 60 + unsigned int v; 61 61 62 62 sfr = iclk / sfr_div; /* SFR_DIV */ 63 63 sfr /= 1000; /* SFR clock in kHz */ ··· 430 430 void __iomem *base = core->base; 431 431 u8 data[HDMI_INFOFRAME_SIZE(AVI)]; 432 432 u8 *ptr; 433 - unsigned y, a, b, s; 434 - unsigned c, m, r; 435 - unsigned itc, ec, q, sc; 436 - unsigned vic; 437 - unsigned yq, cn, pr; 433 + unsigned int y, a, b, s; 434 + unsigned int c, m, r; 435 + unsigned int itc, ec, q, sc; 436 + unsigned int vic; 437 + unsigned int yq, cn, pr; 438 438 439 439 hdmi_avi_infoframe_pack(frame, data, sizeof(data)); 440 440
+1 -1
drivers/gpu/drm/omapdrm/dss/hdmi_phy.c
··· 99 99 100 100 u16 lane_cfg = 0; 101 101 int i; 102 - unsigned lane_cfg_val; 102 + unsigned int lane_cfg_val; 103 103 u16 pol_val = 0; 104 104 105 105 for (i = 0; i < 4; ++i)
+1 -1
drivers/gpu/drm/omapdrm/dss/hdmi_wp.c
··· 168 168 { 169 169 u32 timing_h = 0; 170 170 u32 timing_v = 0; 171 - unsigned hsync_len_offset = 1; 171 + unsigned int hsync_len_offset = 1; 172 172 173 173 DSSDBG("Enter hdmi_wp_video_config_timing\n"); 174 174
+2 -2
drivers/gpu/drm/omapdrm/dss/omapdss.h
··· 198 198 struct omap_dss_dsi_videomode_timings { 199 199 unsigned long hsclk; 200 200 201 - unsigned ndl; 202 - unsigned bitspp; 201 + unsigned int ndl; 202 + unsigned int bitspp; 203 203 204 204 /* pixels */ 205 205 u16 hact;
+2 -2
drivers/gpu/drm/omapdrm/dss/pll.c
··· 105 105 } 106 106 } 107 107 108 - unsigned dss_pll_get_clkout_idx_for_src(enum dss_clk_source src) 108 + unsigned int dss_pll_get_clkout_idx_for_src(enum dss_clk_source src) 109 109 { 110 110 switch (src) { 111 111 case DSS_CLK_SRC_HDMI_PLL: ··· 277 277 unsigned long fint, clkdco, clkout; 278 278 unsigned long target_clkdco; 279 279 unsigned long min_dco; 280 - unsigned n, m, mf, m2, sd; 280 + unsigned int n, m, mf, m2, sd; 281 281 const struct dss_pll_hw *hw = pll->hw; 282 282 283 283 DSSDBG("clkin %lu, target clkout %lu\n", clkin, target_clkout);