From 70b4d1a9a62e1317ced98fef24b67870c6026fba Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 31 Jul 2017 00:59:53 +0200 Subject: [PATCH] imx233: fix horrible bug in linreg offset calculation This was actually harmless because it was only used for the debug screen. Change-Id: I76e802c947fdefa8df498ecfeb53e4b6ce0e12bb --- firmware/target/arm/imx233/power-imx233.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/imx233/power-imx233.c b/firmware/target/arm/imx233/power-imx233.c index 22b70bc9dc..9b9c13573a 100644 --- a/firmware/target/arm/imx233/power-imx233.c +++ b/firmware/target/arm/imx233/power-imx233.c @@ -326,8 +326,8 @@ static struct #define ADD_REGULATOR_LINREG(name) \ .linreg_bm = BM_POWER_##name##CTRL_ENABLE_LINREG #define ADD_REGULATOR_LINREG_OFFSET(name) \ - .linreg_offset_bm = BP_POWER_##name##CTRL_LINREG_OFFSET, \ - .linreg_offset_bp = BM_POWER_##name##CTRL_LINREG_OFFSET + .linreg_offset_bm = BM_POWER_##name##CTRL_LINREG_OFFSET, \ + .linreg_offset_bp = BP_POWER_##name##CTRL_LINREG_OFFSET #if IMX233_SUBTARGET >= 3700 [REGULATOR_VDDD] =