* [PATCH] mfd: tps6586x: Fix up define for TPS6586X_MAX_REGISTER
@ 2015-07-07 0:52 Axel Lin
2015-07-07 6:47 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-07-07 0:52 UTC (permalink / raw)
To: Lee Jones; +Cc: Mike Rapoport, Alban Bedel, Stefan Agner, linux-kernel
The latest valid register is TPS6586X_VERSIONCRC.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/mfd/tps6586x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c
index e0a2583..ae08b29 100644
--- a/drivers/mfd/tps6586x.c
+++ b/drivers/mfd/tps6586x.c
@@ -52,7 +52,7 @@
#define TPS6586X_VERSIONCRC 0xcd
/* Maximum register */
-#define TPS6586X_MAX_REGISTER (TPS6586X_VERSIONCRC + 1)
+#define TPS6586X_MAX_REGISTER TPS6586X_VERSIONCRC
struct tps6586x_irq_data {
u8 mask_reg;
@@ -467,7 +467,7 @@ static bool is_volatile_reg(struct device *dev, unsigned int reg)
static const struct regmap_config tps6586x_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
- .max_register = TPS6586X_MAX_REGISTER - 1,
+ .max_register = TPS6586X_MAX_REGISTER,
.volatile_reg = is_volatile_reg,
.cache_type = REGCACHE_RBTREE,
};
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mfd: tps6586x: Fix up define for TPS6586X_MAX_REGISTER
2015-07-07 0:52 [PATCH] mfd: tps6586x: Fix up define for TPS6586X_MAX_REGISTER Axel Lin
@ 2015-07-07 6:47 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2015-07-07 6:47 UTC (permalink / raw)
To: Axel Lin; +Cc: Mike Rapoport, Alban Bedel, Stefan Agner, linux-kernel
On Tue, 07 Jul 2015, Axel Lin wrote:
> The latest valid register is TPS6586X_VERSIONCRC.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> drivers/mfd/tps6586x.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
> diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c
> index e0a2583..ae08b29 100644
> --- a/drivers/mfd/tps6586x.c
> +++ b/drivers/mfd/tps6586x.c
> @@ -52,7 +52,7 @@
> #define TPS6586X_VERSIONCRC 0xcd
>
> /* Maximum register */
> -#define TPS6586X_MAX_REGISTER (TPS6586X_VERSIONCRC + 1)
> +#define TPS6586X_MAX_REGISTER TPS6586X_VERSIONCRC
>
> struct tps6586x_irq_data {
> u8 mask_reg;
> @@ -467,7 +467,7 @@ static bool is_volatile_reg(struct device *dev, unsigned int reg)
> static const struct regmap_config tps6586x_regmap_config = {
> .reg_bits = 8,
> .val_bits = 8,
> - .max_register = TPS6586X_MAX_REGISTER - 1,
> + .max_register = TPS6586X_MAX_REGISTER,
> .volatile_reg = is_volatile_reg,
> .cache_type = REGCACHE_RBTREE,
> };
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-07 6:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 0:52 [PATCH] mfd: tps6586x: Fix up define for TPS6586X_MAX_REGISTER Axel Lin
2015-07-07 6:47 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox