[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220706184133.210888-1-ezequiel@vanguardiasur.com.ar>
Date: Wed, 6 Jul 2022 15:41:33 -0300
From: Ezequiel Garcia <ezequiel@...guardiasur.com.ar>
To: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: Javier Martinez Canillas <javierm@...hat.com>,
David Airlie <airlied@...ux.ie>,
Ezequiel Garcia <ezequiel@...guardiasur.com.ar>
Subject: [PATCH] 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@...guardiasur.com.ar>
---
drivers/gpu/drm/solomon/ssd130x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c
index 08394444dd6e..f4886e66ff34 100644
--- a/drivers/gpu/drm/solomon/ssd130x.c
+++ b/drivers/gpu/drm/solomon/ssd130x.c
@@ -350,7 +350,7 @@ static int ssd130x_init(struct ssd130x_device *ssd130x)
/* Set precharge period in number of ticks from the internal clock */
precharge = (SSD130X_SET_PRECHARGE_PERIOD1_SET(ssd130x->prechargep1) |
- SSD130X_SET_PRECHARGE_PERIOD1_SET(ssd130x->prechargep2));
+ SSD130X_SET_PRECHARGE_PERIOD2_SET(ssd130x->prechargep2));
ret = ssd130x_write_cmd(ssd130x, 2, SSD130X_SET_PRECHARGE_PERIOD, precharge);
if (ret < 0)
return ret;
--
2.34.3
Powered by blists - more mailing lists