OSDN Git Service

staging:iio:ad7780: add chip ID values and mask
authorRenato Lui Geh <renatogeh@gmail.com>
Sat, 16 Mar 2019 02:14:27 +0000 (23:14 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:20:04 +0000 (20:20 +0100)
commit4812a14a78c82cfe81cb5fd7555a9de723b49a59
tree4b57275075098072f2bb38f02f9d48ad2bed7421
parent33e1f90204f0a291f898c371f68557892526160c
staging:iio:ad7780: add chip ID values and mask

The ad7780 supports both the ad778x and ad717x families. Each chip has
a corresponding ID. This patch provides a mask for extracting ID values
from the status bits and also macros for the correct values for the
ad7170, ad7171, ad7780 and ad7781.

Signed-off-by: Renato Lui Geh <renatogeh@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/ad7780.c