]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/5.0.18/mfd-max77620-fix-swapped-fps_period_max_us-values.patch
Linux 5.0.18
[thirdparty/kernel/stable-queue.git] / releases / 5.0.18 / mfd-max77620-fix-swapped-fps_period_max_us-values.patch
CommitLineData
21f93658
GKH
1From ea611d1cc180fbb56982c83cd5142a2b34881f5c Mon Sep 17 00:00:00 2001
2From: Dmitry Osipenko <digetx@gmail.com>
3Date: Sun, 5 May 2019 18:43:22 +0300
4Subject: mfd: max77620: Fix swapped FPS_PERIOD_MAX_US values
5
6From: Dmitry Osipenko <digetx@gmail.com>
7
8commit ea611d1cc180fbb56982c83cd5142a2b34881f5c upstream.
9
10The FPS_PERIOD_MAX_US definitions are swapped for MAX20024 and MAX77620,
11fix it.
12
13Cc: stable <stable@vger.kernel.org>
14Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
15Signed-off-by: Lee Jones <lee.jones@linaro.org>
16Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17
18---
19 include/linux/mfd/max77620.h | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
21
22--- a/include/linux/mfd/max77620.h
23+++ b/include/linux/mfd/max77620.h
24@@ -136,8 +136,8 @@
25 #define MAX77620_FPS_PERIOD_MIN_US 40
26 #define MAX20024_FPS_PERIOD_MIN_US 20
27
28-#define MAX77620_FPS_PERIOD_MAX_US 2560
29-#define MAX20024_FPS_PERIOD_MAX_US 5120
30+#define MAX20024_FPS_PERIOD_MAX_US 2560
31+#define MAX77620_FPS_PERIOD_MAX_US 5120
32
33 #define MAX77620_REG_FPS_GPIO1 0x54
34 #define MAX77620_REG_FPS_GPIO2 0x55