mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
mfd: Correct WM835x ISINK ramp time defines
commit 9dffe2a32b upstream.
The constants used to specify ISINK ramp times for WM835x had the
wrong shifts so that the on times applied to the off ramp and vice
versa. The masks for the bitfields are correct.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
33faa3c2d0
commit
34e7aa0779
@@ -666,20 +666,20 @@
|
||||
#define WM8350_ISINK_FLASH_DUR_64MS (1 << 8)
|
||||
#define WM8350_ISINK_FLASH_DUR_96MS (2 << 8)
|
||||
#define WM8350_ISINK_FLASH_DUR_1024MS (3 << 8)
|
||||
#define WM8350_ISINK_FLASH_ON_INSTANT (0 << 4)
|
||||
#define WM8350_ISINK_FLASH_ON_0_25S (1 << 4)
|
||||
#define WM8350_ISINK_FLASH_ON_0_50S (2 << 4)
|
||||
#define WM8350_ISINK_FLASH_ON_1_00S (3 << 4)
|
||||
#define WM8350_ISINK_FLASH_ON_1_95S (1 << 4)
|
||||
#define WM8350_ISINK_FLASH_ON_3_91S (2 << 4)
|
||||
#define WM8350_ISINK_FLASH_ON_7_80S (3 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_INSTANT (0 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_0_25S (1 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_0_50S (2 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_1_00S (3 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_1_95S (1 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_3_91S (2 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_7_80S (3 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_INSTANT (0 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_0_25S (1 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_0_50S (2 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_1_00S (3 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_1_95S (1 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_3_91S (2 << 0)
|
||||
#define WM8350_ISINK_FLASH_ON_7_80S (3 << 0)
|
||||
#define WM8350_ISINK_FLASH_OFF_INSTANT (0 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_0_25S (1 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_0_50S (2 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_1_00S (3 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_1_95S (1 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_3_91S (2 << 4)
|
||||
#define WM8350_ISINK_FLASH_OFF_7_80S (3 << 4)
|
||||
|
||||
/*
|
||||
* Regulator Interrupts.
|
||||
|
||||
Reference in New Issue
Block a user