diff options
author | Giuliano Belinassi <giuliano.belinassi@gmail.com> | 2018-11-08 11:03:20 -0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-11-16 18:32:17 +0000 |
commit | 23da6a15113e97043d37b2ac83d234cd43dc627b (patch) | |
tree | 9116385d7f3a94636f1b45987f86c2ed734db8ed /drivers/iio | |
parent | 72e3a5248da9046d17aec9366976a3ec45ceeb3c (diff) | |
download | linux-23da6a15113e97043d37b2ac83d234cd43dc627b.tar.gz linux-23da6a15113e97043d37b2ac83d234cd43dc627b.tar.bz2 linux-23da6a15113e97043d37b2ac83d234cd43dc627b.zip |
staging: iio: ad7780: check if ad778x before gain update
Only the ad778x have the 'gain' status bit. Check it before updating
through a new variable is_ad778x in chip_info.
Signed-off-by: Giuliano Belinassi <giuliano.belinassi@usp.br>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions