diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-28 10:38:49 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-09-04 17:34:51 +0200 |
commit | 3e33a8408117088c873ebc4b3ca0e1e440c0b697 (patch) | |
tree | 8cd32c8e7cb1f61712354388287c202ab2ed384a /drivers/gpu/drm/i915/intel_dsi_cmd.h | |
parent | 3cfca973a442460ed64265c110e10100439cb457 (diff) | |
download | op-kernel-dev-3e33a8408117088c873ebc4b3ca0e1e440c0b697.zip op-kernel-dev-3e33a8408117088c873ebc4b3ca0e1e440c0b697.tar.gz |
drm/i915/dsi: s/size_t/int/
This fixes a printf warn from gcc:
drivers/gpu/drm/i915/intel_dsi_cmd.c: In function ‘dsi_vc_send_long’:
drivers/gpu/drm/i915/intel_dsi_cmd.c:181:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t’ [-Wformat=]
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dsi_cmd.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dsi_cmd.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_dsi_cmd.h b/drivers/gpu/drm/i915/intel_dsi_cmd.h index 714a49a..54c8a23 100644 --- a/drivers/gpu/drm/i915/intel_dsi_cmd.h +++ b/drivers/gpu/drm/i915/intel_dsi_cmd.h @@ -36,16 +36,16 @@ void dsi_hs_mode_enable(struct intel_dsi *intel_dsi, bool enable); int dsi_vc_dcs_write(struct intel_dsi *intel_dsi, int channel, - const u8 *data, size_t len); + const u8 *data, int len); int dsi_vc_generic_write(struct intel_dsi *intel_dsi, int channel, - const u8 *data, size_t len); + const u8 *data, int len); int dsi_vc_dcs_read(struct intel_dsi *intel_dsi, int channel, u8 dcs_cmd, - u8 *buf, size_t buflen); + u8 *buf, int buflen); int dsi_vc_generic_read(struct intel_dsi *intel_dsi, int channel, - u8 *reqdata, size_t reqlen, u8 *buf, size_t buflen); + u8 *reqdata, int reqlen, u8 *buf, int buflen); int dpi_send_cmd(struct intel_dsi *intel_dsi, u32 cmd); @@ -84,21 +84,21 @@ static inline int dsi_vc_generic_write_2(struct intel_dsi *intel_dsi, /* XXX: questionable read helpers */ static inline int dsi_vc_generic_read_0(struct intel_dsi *intel_dsi, - int channel, u8 *buf, size_t buflen) + int channel, u8 *buf, int buflen) { return dsi_vc_generic_read(intel_dsi, channel, NULL, 0, buf, buflen); } static inline int dsi_vc_generic_read_1(struct intel_dsi *intel_dsi, int channel, u8 param, u8 *buf, - size_t buflen) + int buflen) { return dsi_vc_generic_read(intel_dsi, channel, ¶m, 1, buf, buflen); } static inline int dsi_vc_generic_read_2(struct intel_dsi *intel_dsi, int channel, u8 param1, u8 param2, - u8 *buf, size_t buflen) + u8 *buf, int buflen) { u8 req[2] = { param1, param2 }; |