]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.4/mfd-da9063-fix-otp-control-register-names-to-match-datasheets-for-da9063-63l.patch
e35cb178e845b654d9e24876a002c338879ca41a
[thirdparty/kernel/stable-queue.git] / queue-4.4 / mfd-da9063-fix-otp-control-register-names-to-match-datasheets-for-da9063-63l.patch
1 From 6b4814a9451add06d457e198be418bf6a3e6a990 Mon Sep 17 00:00:00 2001
2 From: Steve Twiss <stwiss.opensource@diasemi.com>
3 Date: Fri, 26 Apr 2019 14:33:35 +0100
4 Subject: mfd: da9063: Fix OTP control register names to match datasheets for DA9063/63L
5
6 From: Steve Twiss <stwiss.opensource@diasemi.com>
7
8 commit 6b4814a9451add06d457e198be418bf6a3e6a990 upstream.
9
10 Mismatch between what is found in the Datasheets for DA9063 and DA9063L
11 provided by Dialog Semiconductor, and the register names provided in the
12 MFD registers file. The changes are for the OTP (one-time-programming)
13 control registers. The two naming errors are OPT instead of OTP, and
14 COUNT instead of CONT (i.e. control).
15
16 Cc: Stable <stable@vger.kernel.org>
17 Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
18 Signed-off-by: Lee Jones <lee.jones@linaro.org>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21 ---
22 include/linux/mfd/da9063/registers.h | 6 +++---
23 1 file changed, 3 insertions(+), 3 deletions(-)
24
25 --- a/include/linux/mfd/da9063/registers.h
26 +++ b/include/linux/mfd/da9063/registers.h
27 @@ -215,9 +215,9 @@
28
29 /* DA9063 Configuration registers */
30 /* OTP */
31 -#define DA9063_REG_OPT_COUNT 0x101
32 -#define DA9063_REG_OPT_ADDR 0x102
33 -#define DA9063_REG_OPT_DATA 0x103
34 +#define DA9063_REG_OTP_CONT 0x101
35 +#define DA9063_REG_OTP_ADDR 0x102
36 +#define DA9063_REG_OTP_DATA 0x103
37
38 /* Customer Trim and Configuration */
39 #define DA9063_REG_T_OFFSET 0x104