s6145: more fixes.

This commit is contained in:
Solomon Peachy 2015-11-16 23:08:34 -05:00
parent bd2d4f8da3
commit 23ef5363a9
1 changed files with 6 additions and 2 deletions

View File

@ -1437,7 +1437,7 @@ static int shinkos6145_get_imagecorr(struct shinkos6145_ctx *ctx)
struct s6145_imagecorr_data data;
ret = read_data(ctx->dev, ctx->endp_up, (uint8_t *) &data,
le16_to_cpu(resp->hdr.payload_len),
sizeof(data),
&num);
if (ret < 0)
goto done;
@ -1847,7 +1847,11 @@ top:
}
/* Get image correction parameters */
shinkos6145_get_imagecorr(ctx);
ret = shinkos6145_get_imagecorr(ctx);
if (ret) {
ERROR("Failed to execute command\n");
return ret;
}
/* Perform library transform... */
uint32_t newlen = le32_to_cpu(ctx->hdr.columns) *