iio: ad7949: kill pointless "readback"-handling code
authorAndrea Merello <andrea.merello@gmail.com>
Thu, 12 Sep 2019 14:43:07 +0000 (16:43 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Sep 2019 10:25:21 +0000 (11:25 +0100)
commitc270bbf7bb9ddc4e2a51b3c56557c377c9ac79bc
tree1f20738fbd8841dccc9fd821003de177933004a7
parent5a56c518c4d22c2b909eff6b18c7e40e1642c53d
iio: ad7949: kill pointless "readback"-handling code

The device could be configured to spit out also the configuration word
while reading the AD result value (in the same SPI xfer) - this is called
"readback" in the device datasheet.

The driver checks if readback is enabled and it eventually adjusts the SPI
xfer length and it applies proper shifts to still get the data, discarding
the configuration word.

The readback option is actually never enabled (the driver disables it), so
the said checks do not serve for any purpose.

Since enabling the readback option seems not to provide any advantage (the
driver entirely sets the configuration word without relying on any default
value), just kill the said, unused, code.

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7949.c