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) ...@@ -318,16 +318,12 @@ static int ws_eink_update_display(struct ws_eink_fb_par *par)
{ {
int ret = 0; int ret = 0;
u8 *vmem = par->info->screen_base; u8 *vmem = par->info->screen_base;
#ifdef __LITTLE_ENDIAN
u8 *ssbuf = par->ssbuf; u8 *ssbuf = par->ssbuf;
memcpy(&ssbuf, &vmem, sizeof(vmem)); memcpy(&ssbuf, &vmem, sizeof(vmem));
ret = set_frame_memory(par, ssbuf); ret = set_frame_memory(par, ssbuf);
if (ret) if (ret)
return ret; return ret;
ret = display_frame(par); ret = display_frame(par);
#endif
return ret; return ret;
} }
...@@ -535,13 +531,6 @@ static int ws_eink_spi_probe(struct spi_device *spi) ...@@ -535,13 +531,6 @@ static int ws_eink_spi_probe(struct spi_device *spi)
par->dc = pdata->dc_gpio; par->dc = pdata->dc_gpio;
par->busy = pdata->busy_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); retval = register_framebuffer(info);
if (retval < 0) { if (retval < 0) {
dev_err(&spi->dev, "framebuffer registration failed"); 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