Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/ssd130x: Fix pre-charge period setting

Fix small typo which causes the mask for the 'precharge1' setting
to be used with the 'precharge2' value.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220706184133.210888-1-ezequiel@vanguardiasur.com.ar

authored by

Ezequiel Garcia and committed by
Javier Martinez Canillas
b68277f1 7c1aeba7

+1 -1
+1 -1
drivers/gpu/drm/solomon/ssd130x.c
··· 350 350 351 351 /* Set precharge period in number of ticks from the internal clock */ 352 352 precharge = (SSD130X_SET_PRECHARGE_PERIOD1_SET(ssd130x->prechargep1) | 353 - SSD130X_SET_PRECHARGE_PERIOD1_SET(ssd130x->prechargep2)); 353 + SSD130X_SET_PRECHARGE_PERIOD2_SET(ssd130x->prechargep2)); 354 354 ret = ssd130x_write_cmd(ssd130x, 2, SSD130X_SET_PRECHARGE_PERIOD, precharge); 355 355 if (ret < 0) 356 356 return ret;