]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iio: dac: mcp4725: support voltage reference selection
authorTomas Novotny <tomas@novotny.cz>
Tue, 18 Oct 2016 17:43:08 +0000 (19:43 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:23 +0000 (19:34 +0100)
commit29157c6d601db8cb9f3bea93fc933b73db3bf869
tree52c2b4ea6db8e053859b73aa5f1b1d74daf07b10
parent8b0ee39f4de13f9d8b50846621e558b78b7defff
iio: dac: mcp4725: support voltage reference selection

MCP47x6 chip supports selection of a voltage reference (VDD, VREF buffered
or unbuffered). MCP4725 doesn't have this feature thus the eventual setting
is ignored and user is warned.

The setting is stored only in the volatile memory of the chip. You need to
manually store it to the EEPROM of the chip via 'store_eeprom' sysfs entry.

Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/mcp4725.c
include/linux/iio/dac/mcp4725.h