Commit 977dcc06 authored by Jani Nikula's avatar Jani Nikula

drm/i915/lspcon: switch to kernel types

Mixed C99 and kernel types use is getting ugly.	Prefer kernel types.

sed -i 's/\buint\(8\|16\|32\|64\)_t\b/u\1/g'
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/0c2d399bfb8fd9f90c7899eaaa0a9cab82f0d68d.1547629303.git.jani.nikula@intel.com
parent c7cc5216
...@@ -288,12 +288,12 @@ static bool lspcon_parade_fw_ready(struct drm_dp_aux *aux) ...@@ -288,12 +288,12 @@ static bool lspcon_parade_fw_ready(struct drm_dp_aux *aux)
} }
static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux, static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux,
uint8_t *avi_buf) u8 *avi_buf)
{ {
u8 avi_if_ctrl; u8 avi_if_ctrl;
u8 block_count = 0; u8 block_count = 0;
u8 *data; u8 *data;
uint16_t reg; u16 reg;
ssize_t ret; ssize_t ret;
while (block_count < 4) { while (block_count < 4) {
...@@ -335,10 +335,10 @@ static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux, ...@@ -335,10 +335,10 @@ static bool _lspcon_parade_write_infoframe_blocks(struct drm_dp_aux *aux,
} }
static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux, static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux,
const uint8_t *frame, const u8 *frame,
ssize_t len) ssize_t len)
{ {
uint8_t avi_if[LSPCON_PARADE_AVI_IF_DATA_SIZE] = {1, }; u8 avi_if[LSPCON_PARADE_AVI_IF_DATA_SIZE] = {1, };
/* /*
* Parade's frames contains 32 bytes of data, divided * Parade's frames contains 32 bytes of data, divided
...@@ -367,13 +367,13 @@ static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux, ...@@ -367,13 +367,13 @@ static bool _lspcon_write_avi_infoframe_parade(struct drm_dp_aux *aux,
} }
static bool _lspcon_write_avi_infoframe_mca(struct drm_dp_aux *aux, static bool _lspcon_write_avi_infoframe_mca(struct drm_dp_aux *aux,
const uint8_t *buffer, ssize_t len) const u8 *buffer, ssize_t len)
{ {
int ret; int ret;
uint32_t val = 0; u32 val = 0;
uint32_t retry; u32 retry;
uint16_t reg; u16 reg;
const uint8_t *data = buffer; const u8 *data = buffer;
reg = LSPCON_MCA_AVI_IF_WRITE_OFFSET; reg = LSPCON_MCA_AVI_IF_WRITE_OFFSET;
while (val < len) { while (val < len) {
...@@ -459,7 +459,7 @@ void lspcon_set_infoframes(struct intel_encoder *encoder, ...@@ -459,7 +459,7 @@ void lspcon_set_infoframes(struct intel_encoder *encoder,
{ {
ssize_t ret; ssize_t ret;
union hdmi_infoframe frame; union hdmi_infoframe frame;
uint8_t buf[VIDEO_DIP_DATA_SIZE]; u8 buf[VIDEO_DIP_DATA_SIZE];
struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base); struct intel_digital_port *dig_port = enc_to_dig_port(&encoder->base);
struct intel_lspcon *lspcon = &dig_port->lspcon; struct intel_lspcon *lspcon = &dig_port->lspcon;
struct intel_dp *intel_dp = &dig_port->dp; struct intel_dp *intel_dp = &dig_port->dp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment