linux-stable/drivers
Axel Lin 22a46dcfb3 regulator: lm363x: Fix off-by-one n_voltages for lm3632 ldo_vpos/ldo_vneg
[ Upstream commit 1e2cc8c5e0 ]

According to the datasheet https://www.ti.com/lit/ds/symlink/lm3632a.pdf
Table 20. VPOS Bias Register Field Descriptions VPOS[5:0]
Sets the Positive Display Bias (LDO) Voltage (50 mV per step)
000000: 4 V
000001: 4.05 V
000010: 4.1 V
....................
011101: 5.45 V
011110: 5.5 V (Default)
011111: 5.55 V
....................
100111: 5.95 V
101000: 6 V
Note: Codes 101001 to 111111 map to 6 V

The LM3632_LDO_VSEL_MAX should be 0b101000 (0x28), so the maximum voltage
can match the datasheet.

Fixes: 3a8d1a73a0 ("regulator: add LM363X driver")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20190626132632.32629-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 12:30:16 +02:00
..
accessibility
acpi ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id() 2019-08-25 10:51:31 +02:00
amba
android coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping 2019-08-06 18:29:41 +02:00
ata libata: add SG safety checks in SFF pio transfers 2019-09-06 10:19:35 +02:00
atm Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105 2019-09-21 07:14:13 +02:00
auxdisplay
base driver core: Fix use-after-free and double free on glue directory 2019-09-21 07:14:06 +02:00
bcma
block floppy: fix usercopy direction 2019-09-21 07:14:22 +02:00
bluetooth Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices 2019-10-05 12:30:12 +02:00
bus
cdrom
char hpet: Fix division by zero in hpet_time_div() 2019-08-04 09:33:43 +02:00
clk clk: rockchip: Don't yell about bad mmc phases when getting 2019-09-21 07:14:06 +02:00
clocksource clocksource/drivers/exynos_mct: Increase priority over ARM arch timer 2019-08-04 09:33:22 +02:00
connector
cpufreq cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init() 2019-08-25 10:51:24 +02:00
cpuidle
crypto crypto: talitos - fix missing break in switch statement 2019-10-05 12:30:07 +02:00
dax
dca
devfreq
dio
dma dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe() 2019-09-21 07:14:20 +02:00
dma-buf
edac EDAC: Fix global-out-of-bounds write when setting edac_mc_poll_msec 2019-08-04 09:33:23 +02:00
eisa
extcon extcon: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:48:26 -07:00
firewire
firmware iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND 2019-08-25 10:51:23 +02:00
fmc
fpga
gpio gpio: fix line flag validation in lineevent_create 2019-09-21 07:14:04 +02:00
gpu drm: Flush output polling on shutdown 2019-10-05 12:30:11 +02:00
hid HID: hidraw: Fix invalid read in hidraw_ioctl 2019-10-05 12:30:06 +02:00
hsi
hv
hwmon hwmon: (nct7802) Fix wrong detection of in4 presence 2019-08-25 10:51:37 +02:00
hwspinlock
hwtracing stm class: Fix a double free of stm_source_device 2019-09-06 10:19:51 +02:00
i2c i2c: piix4: Fix port selection for AMD Family 16h Model 30h 2019-09-06 10:19:53 +02:00
ide
idle x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:19:34 +02:00
iio iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data 2019-05-31 06:48:27 -07:00
infiniband IB/core: Add an unbound WQ type to the new CQ API 2019-10-05 12:30:05 +02:00
input Input: psmouse - fix build error of multiple definition 2019-08-25 10:51:51 +02:00
iommu iommu/amd: Fix race in increase_address_space() 2019-09-21 07:14:22 +02:00
ipack
irqchip irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices 2019-10-05 12:30:10 +02:00
isdn mISDN: enforce CAP_NET_RAW for raw sockets 2019-10-05 12:30:14 +02:00
leds leds: pca9532: fix a potential NULL pointer dereference 2019-05-04 08:49:10 +02:00
lguest
lightnvm
macintosh
mailbox mailbox: handle failed named mailbox channel request 2019-08-04 09:33:41 +02:00
mcb
md dm table: fix invalid memory accesses with too high sector number 2019-09-06 10:19:39 +02:00
media media: tvp5150: fix switch exit in set control handler 2019-10-05 12:30:07 +02:00
memory memory: tegra: Fix integer overflow on tick value calculation 2019-05-25 18:26:49 +02:00
memstick memstick: Fix error cleanup path of memstick_init 2019-08-04 09:33:37 +02:00
message
mfd mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk 2019-08-04 09:33:39 +02:00
misc VMCI: Release resource if the work is already queued 2019-09-06 10:19:52 +02:00
mmc mmc: core: Fix init of SD cards reporting an invalid VDD range 2019-09-06 10:19:51 +02:00
mtd mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword() 2019-10-05 12:30:07 +02:00
net usbnet: sanity checking of packet sizes and device mtu 2019-10-05 12:30:14 +02:00
nfc st_nci_hci_connectivity_event_received: null check the allocation 2019-09-06 10:19:32 +02:00
ntb
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-08-04 09:33:29 +02:00
nvme nvme: Fix u32 overflow in the number of namespace list calculation 2019-07-10 09:55:32 +02:00
nvmem nvmem: Use the same permissions for eeprom as for nvmem 2019-09-21 07:14:08 +02:00
of
oprofile
parisc parisc: Use implicit space register selection for loading the coherence index of I/O pdirs 2019-06-11 12:22:47 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2019-07-10 09:55:29 +02:00
pci PCI: xilinx-nwl: Fix Multi MSI data programming 2019-08-04 09:33:38 +02:00
pcmcia
perf drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-08-06 18:29:41 +02:00
phy phy: renesas: rcar-gen2: Fix memory leak at error paths 2019-08-04 09:33:37 +02:00
pinctrl pinctrl: rockchip: fix leaked of_node references 2019-08-04 09:33:36 +02:00
platform platform/x86: intel_pmc_ipc: adding error handling 2019-06-22 08:17:16 +02:00
pnp
power power: supply: sysfs: ratelimit property read error message 2019-10-05 12:30:09 +02:00
powercap x86/cpu: Sanitize FAM6_ATOM naming 2019-05-14 19:19:34 +02:00
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:33:45 +02:00
ps3
ptp
pwm pwm: Fix deadlock warning when removing PWM device 2019-06-22 08:17:17 +02:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings 2019-08-06 18:29:38 +02:00
ras
regulator regulator: lm363x: Fix off-by-one n_voltages for lm3632 ldo_vpos/ldo_vneg 2019-10-05 12:30:16 +02:00
remoteproc
reset
rpmsg
rtc rtc: pcf8523: don't return invalid date when battery is low 2019-06-22 08:17:21 +02:00
s390 s390/qdio: add sanity checks to the fast-requeue path 2019-08-25 10:51:25 +02:00
sbus
scsi scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value 2019-09-06 10:19:44 +02:00
sfi
sh
sn
soc soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher 2019-06-22 08:17:15 +02:00
spi spi: bcm2835aux: fix corruptions for longer spi transfers 2019-09-10 10:31:03 +01:00
spmi
ssb ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit 2019-05-31 06:48:12 -07:00
staging staging: comedi: dt3000: Fix rounding up of timer divisor 2019-08-25 10:51:48 +02:00
target
tc
thermal drivers: thermal: tsens: Don't print error message on -EPROBE_DEFER 2019-06-22 08:17:13 +02:00
thunderbolt
tty tty/serial: atmel: reschedule TX after RX was started 2019-09-21 07:14:10 +02:00
uio
usb USB: usbcore: Fix slab-out-of-bounds bug during device reset 2019-09-21 07:14:08 +02:00
uwb
vfio vfio/pci: use correct format characters 2019-05-08 07:19:10 +02:00
vhost vhost: make sure log_num < in_num 2019-09-16 08:19:34 +02:00
video video: imsttfb: fix potential NULL pointer dereferences 2019-06-22 08:17:17 +02:00
virt drivers/virt/fsl_hypervisor.c: prevent integer overflow in ioctl 2019-05-16 19:43:47 +02:00
virtio
vlynq
vme
w1 w1: fix the resume command API 2019-05-31 06:48:15 -07:00
watchdog watchdog: bcm2835_wdt: Fix module autoload 2019-09-06 10:19:43 +02:00
xen xen/pciback: remove set but not used variable 'old_state' 2019-08-25 10:51:45 +02:00
zorro
Kconfig
Makefile