Skip to content

Commit b68277f

Browse files
ezequielgarciamartinezjavier
authored andcommitted
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
1 parent 7c1aeba commit b68277f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/solomon/ssd130x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int ssd130x_init(struct ssd130x_device *ssd130x)
350350

351351
/* Set precharge period in number of ticks from the internal clock */
352352
precharge = (SSD130X_SET_PRECHARGE_PERIOD1_SET(ssd130x->prechargep1) |
353-
SSD130X_SET_PRECHARGE_PERIOD1_SET(ssd130x->prechargep2));
353+
SSD130X_SET_PRECHARGE_PERIOD2_SET(ssd130x->prechargep2));
354354
ret = ssd130x_write_cmd(ssd130x, 2, SSD130X_SET_PRECHARGE_PERIOD, precharge);
355355
if (ret < 0)
356356
return ret;

0 commit comments

Comments
 (0)