BigW Consortium Gitlab

Commit fed53150 by Thong Nguyen

ws eink: remove endian-specific code

Remove the endian-specific code from driver. It is not nesesary because ARM processors were little endians so dont need to check
parent c952d56d
......@@ -318,16 +318,12 @@ static int ws_eink_update_display(struct ws_eink_fb_par *par)
{
int ret = 0;
u8 *vmem = par->info->screen_base;
#ifdef __LITTLE_ENDIAN
u8 *ssbuf = par->ssbuf;
memcpy(&ssbuf, &vmem, sizeof(vmem));
ret = set_frame_memory(par, ssbuf);
if (ret)
return ret;
ret = display_frame(par);
#endif
return ret;
}
......@@ -535,13 +531,6 @@ static int ws_eink_spi_probe(struct spi_device *spi)
par->dc = pdata->dc_gpio;
par->busy = pdata->busy_gpio;
#ifdef __LITTLE_ENDIAN
vmem = vzalloc(vmem_size);
if (!vmem)
return retval;
par->ssbuf = vmem;
#endif
retval = register_framebuffer(info);
if (retval < 0) {
dev_err(&spi->dev, "framebuffer registration failed");
......
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