From: Julian Scheel Date: Thu, 24 Mar 2016 21:14:23 +0000 (+0100) Subject: fbdev: ssd1307fb: Fix charge pump setting X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80403b232b7af033bb5a2043fc4d60f16e46519f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index fa3480815cdb..21dafe53ca49 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -389,7 +389,7 @@ static int ssd1307fb_init(struct ssd1307fb_par *par) return ret; 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) return ret;