Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a31c225 authored by Tomas Novotny's avatar Tomas Novotny Committed by Jonathan Cameron
Browse files

iio: dac: mcp4725: fix incorrect comment



Number 2 is referencing to the settings with the largest available
resistor.

No functional change.

Signed-off-by: default avatarTomas Novotny <tomas@novotny.cz>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent f0879217
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -374,7 +374,7 @@ static int mcp4725_probe(struct i2c_client *client,
	}
	}
	pd = (inbuf[0] >> 1) & 0x3;
	pd = (inbuf[0] >> 1) & 0x3;
	data->powerdown = pd > 0 ? true : false;
	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);
	data->dac_value = (inbuf[1] << 4) | (inbuf[2] >> 4);


	err = iio_device_register(indio_dev);
	err = iio_device_register(indio_dev);