mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
fbdev: ssd1307fb: Fix charge pump setting
Make sure bit 4 is set for the charge pump setting. It is required according to SSD1306 App Note. Signed-off-by: Julian Scheel <julian@jusst.de> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
ad6a2d0f8d
commit
80403b232b
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ static int ssd1307fb_init(struct ssd1307fb_par *par)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = ssd1307fb_write_cmd(par->client,
|
ret = ssd1307fb_write_cmd(par->client,
|
||||||
(par->device_info->need_chargepump & 0x1 << 2) & 0x14);
|
BIT(4) | (par->device_info->need_chargepump ? BIT(2) : 0));
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue