From: John Keeping <john@metanate.com>
To: Jaehoon Chung <jh80.chung@samsung.com>
Cc: u-boot@lists.denx.de, John Keeping <john@metanate.com>
Subject: [PATCH] power: act8846_pmic: fix number of registers
Date: Thu, 19 Jan 2023 12:56:12 +0000 [thread overview]
Message-ID: <20230119125612.1968983-1-john@metanate.com> (raw)
The highest register on ACT8846 is 0xf5, so set the number of registers
to 0xf6, ensuring that the pmic read/write commands are able to access
all of the supported registers (and many that are not valid, since the
register space is quite sparse).
Signed-off-by: John Keeping <john@metanate.com>
---
include/power/act8846_pmic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/power/act8846_pmic.h b/include/power/act8846_pmic.h
index acd0fd671e..84845c70f9 100644
--- a/include/power/act8846_pmic.h
+++ b/include/power/act8846_pmic.h
@@ -9,7 +9,7 @@
#include <asm/gpio.h>
-#define ACT8846_NUM_OF_REGS 12
+#define ACT8846_NUM_OF_REGS 0xf6
#define BUCK_VOL_MASK 0x3f
#define LDO_VOL_MASK 0x3f
--
2.39.1
next reply other threads:[~2023-01-19 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 12:56 John Keeping [this message]
2023-01-19 16:19 ` [PATCH] power: act8846_pmic: fix number of registers Simon Glass
2023-01-31 12:48 ` Jaehoon Chung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230119125612.1968983-1-john@metanate.com \
--to=john@metanate.com \
--cc=jh80.chung@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox