]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio: dac: mcp4725: fix incorrect comment
authorTomas Novotny <tomas@novotny.cz>
Tue, 18 Oct 2016 17:43:06 +0000 (19:43 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:20 +0000 (19:34 +0100)
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>
drivers/iio/dac/mcp4725.c

index 2b28b1f5b3a24550041d433f720d3d6056040ca4..5b2dfa0a0d2c99873b9059d82a6c99dd6327a9b5 100644 (file)
@@ -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);