staging:iio:ad2s1210: Remove old_data from ad2s1210_state
authorRodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Fri, 9 Mar 2018 23:46:25 +0000 (20:46 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 10 Mar 2018 17:21:23 +0000 (17:21 +0000)
commit9aa5134ac486b48c4c8ac14571e6034131f040f8
tree9e95411ffff4e820fba7c4a84500f84c21caefa2
parenta8cf0d829af69e64aa1cbf9bc8816389c5cce5e9
staging:iio:ad2s1210: Remove old_data from ad2s1210_state

The variable old_data is a bool type, which only receives the value
'true' in the function ad2s1210_config_write and ad2s1210_config_read.
There is no other use for this variable. This patch removes old_data
from the ad2s1210_state and from all the function that use it.

Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c