Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e47932b authored by Thomas Niederprüm's avatar Thomas Niederprüm Committed by Tomi Valkeinen
Browse files

fbdev: ssd1307fb: fix logical error



The logical not needs to be done after the bit masking.

Fixes: a3998fe03e87 ("fbdev: ssd1307fb: Unify init code and obtain
hw specific bits from DT")

Signed-off-by: default avatarThomas Niederprüm <niederp@physik.uni-kl.de>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent ee62eddb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@ static int ssd1307fb_init(struct ssd1307fb_par *par)
	if (ret < 0)
		return ret;

	compins = 0x02 | (!par->com_seq & 0x1) << 4
	compins = 0x02 | !(par->com_seq & 0x1) << 4
				   | (par->com_lrremap & 0x1) << 5;
	ret = ssd1307fb_write_cmd(par->client, compins);
	if (ret < 0)