Skip to content

Commit

Permalink
iio: dac: mcp4725: fix incorrect comment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Novotny authored and Jonathan Cameron committed Oct 23, 2016
1 parent f087921 commit 6a31c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iio/dac/mcp4725.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a31c22

Please sign in to comment.