From ab1543314ba0830d89d6dbfeeef290620c711a31 Mon Sep 17 00:00:00 2001 From: Fei Mao Date: Wed, 12 Aug 2020 18:35:09 +0800 Subject: [PATCH] input: touchscreen: st: increase LDO load Its maximal load is about 20mA, so change it by measure. Change-Id: I1184ac5db5aa067a10cb0accbfda3da7111b4fc3 Signed-off-by: Fei Mao --- drivers/input/touchscreen/st/fts.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/st/fts.c b/drivers/input/touchscreen/st/fts.c index c1e6d31bae73..cce1ee2fd85a 100644 --- a/drivers/input/touchscreen/st/fts.c +++ b/drivers/input/touchscreen/st/fts.c @@ -78,8 +78,10 @@ #define FTS_DVDD_VOL_MIN 1800000 #define FTS_DVDD_VOL_MAX 1800000 +#define FTS_DVDD_LOAD 20000 #define FTS_AVDD_VOL_MIN 3000000 #define FTS_AVDD_VOL_MAX 3300000 +#define FTS_AVDD_LOAD 20000 /* * Uncomment to use polling mode instead of interrupt mode. @@ -5205,7 +5207,7 @@ static int fts_get_reg(struct fts_ts_info *info, bool get) goto regulator_put; } - retval = regulator_set_load(info->pwr_reg, 62000); + retval = regulator_set_load(info->pwr_reg, FTS_DVDD_LOAD); if (retval < 0) { logError(1, "%s %s: Failed to set power load\n", tag, __func__); @@ -5232,7 +5234,7 @@ static int fts_get_reg(struct fts_ts_info *info, bool get) goto regulator_put; } - retval = regulator_set_load(info->bus_reg, 20000); + retval = regulator_set_load(info->bus_reg, FTS_AVDD_LOAD); if (retval < 0) { logError(1, "%s %s: Failed to set power load\n", tag, __func__);