linux/drivers/iio/dac
Jean-Francois Dagenais 0600353150 iio: dac: mcp4725: add missing powerdown bits in store eeprom
When issuing the write DAC register and write eeprom command, the two
powerdown bits (PD0 and PD1) are assumed by the chip to be present in
the bytes sent. Leaving them at 0 implies "powerdown disabled" which is
a different state that the current one. By adding the current state of
the powerdown in the i2c write, the chip will correctly power-on exactly
like as it is at the moment of store_eeprom call.

This is documented in MCP4725's datasheet, FIGURE 6-2: "Write Commands
for DAC Input Register and EEPROM" and MCP4726's datasheet, FIGURE 6-3:
"Write All Memory Command".

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-03-16 15:15:31 +00:00
..
ad5064.c iio: ad5064: Fix regulator handling 2018-09-29 13:28:47 +01:00
ad5360.c
ad5380.c iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW 2018-03-07 20:14:36 +00:00
ad5421.c
ad5446.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad5449.c
ad5504.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad5592r-base.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
ad5592r-base.h
ad5592r.c
ad5593r.c
ad5624r.h
ad5624r_spi.c
ad5686-spi.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5686.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5686.h drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5696-i2c.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5755.c
ad5758.c drivers: iio: dac: Fix wrong license for ADI drivers 2019-02-09 18:46:01 +00:00
ad5761.c
ad5764.c iio: Replace occurrences of magic number 0 by IIO_CHAN_INFO_RAW 2018-03-07 20:14:36 +00:00
ad5791.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad7303.c
ad8801.c
cio-dac.c
dpot-dac.c iio: dpot-dac: mark expected switch fall-through with text GCC expects. 2018-10-14 18:01:00 +01:00
ds4424.c
Kconfig iio:dac:ti-dac7612: Add driver for Texas Instruments DAC7612 2019-02-09 18:46:02 +00:00
lpc18xx_dac.c
ltc1660.c iio: dac: add support for ltc1660 2018-08-25 09:24:07 +01:00
ltc2632.c treewide: convert ISO_8859-1 text comments to utf-8 2018-08-23 18:48:43 -07:00
m62332.c
Makefile iio:dac:ti-dac7612: Add driver for Texas Instruments DAC7612 2019-02-09 18:46:02 +00:00
max517.c iio: dac: max517: avoid using CONFIG_PM_SLEEP 2018-08-19 17:40:24 +01:00
max5821.c iio: dac: max5821: avoid using CONFIG_PM_SLEEP 2018-08-19 17:41:31 +01:00
mcp4725.c iio: dac: mcp4725: add missing powerdown bits in store eeprom 2019-03-16 15:15:31 +00:00
mcp4922.c iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2018-08-25 09:47:36 +01:00
stm32-dac-core.c
stm32-dac-core.h
stm32-dac.c
ti-dac082s085.c
ti-dac5571.c iio: dac: ti-dac5571: provide of_match_table to driver 2018-08-25 09:58:52 +01:00
ti-dac7311.c iio:dac:ti-dac7311 Add driver for Texas Instrument DAC7311 2018-11-11 15:29:44 +00:00
ti-dac7612.c iio:dac:ti-dac7612: Add driver for Texas Instruments DAC7612 2019-02-09 18:46:02 +00:00
vf610_dac.c