OSDN Git Service

staging: iio: ad7780: generates pattern_mask from PAT bits
authorGiuliano Belinassi <giuliano.belinassi@gmail.com>
Thu, 8 Nov 2018 13:03:40 +0000 (11:03 -0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 16 Nov 2018 18:32:26 +0000 (18:32 +0000)
commitc036a324c03eed9a31a2733fa2ad4ae96840244e
tree89f3991906ba7cb28d4097bad0f08e28ee1295a7
parent23da6a15113e97043d37b2ac83d234cd43dc627b
staging: iio: ad7780: generates pattern_mask from PAT bits

Previously, all pattern_masks and patterns in the chip_info table were
hardcoded. Now they are generated using the PAT macros, as described in
the datasheets.

Signed-off-by: Giuliano Belinassi <giuliano.belinassi@usp.br>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7780.c