summaryrefslogtreecommitdiff
path: root/drivers/iio/dac
diff options
context:
space:
mode:
authorTomas Novotny <tomas@novotny.cz>2016-10-18 19:43:06 +0200
committerJonathan Cameron <jic23@kernel.org>2016-10-23 19:34:20 +0100
commit6a31c225f5d5182cd711019f99a4e87c92884e2b (patch)
tree1493e0d39107f441a489738ef09519256a382ed7 /drivers/iio/dac
parentf0879217a8710289f3a9bac9e5db8f73e8189750 (diff)
downloadlinux-6a31c225f5d5182cd711019f99a4e87c92884e2b.tar.gz
linux-6a31c225f5d5182cd711019f99a4e87c92884e2b.tar.xz
iio: dac: mcp4725: fix incorrect comment
Number 2 is referencing to the settings with the largest available resistor. No functional change. Signed-off-by: Tomas Novotny <tomas@novotny.cz> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/dac')
-rw-r--r--drivers/iio/dac/mcp4725.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/mcp4725.c b/drivers/iio/dac/mcp4725.c
index 2b28b1f5b3a2..5b2dfa0a0d2c 100644
--- a/drivers/iio/dac/mcp4725.c
+++ b/drivers/iio/dac/mcp4725.c
@@ -374,7 +374,7 @@ static int mcp4725_probe(struct i2c_client *client,
}
pd = (inbuf[0] >> 1) & 0x3;
data->powerdown = pd > 0 ? true : false;
- data->powerdown_mode = pd ? pd - 1 : 2; /* largest register to gnd */
+ data->powerdown_mode = pd ? pd - 1 : 2; /* largest resistor to gnd */
data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4);
err = iio_device_register(indio_dev);