Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad7173: improve chip id's defines

Rename to AD7172_2_ID to avoid confusion with _4 model.
Reorder id's by reg value.

Signed-off-by: Dumitru Ceclan <mitrutzceclan@gmail.com>
Link: https://lore.kernel.org/r/20240306110956.13167-3-mitrutzceclan@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Dumitru Ceclan and committed by
Jonathan Cameron
39331052 88a1ffc6

+3 -3
+3 -3
drivers/iio/adc/ad7173.c
··· 61 61 #define AD7173_AIN_TEMP_POS 17 62 62 #define AD7173_AIN_TEMP_NEG 18 63 63 64 - #define AD7172_ID 0x00d0 65 - #define AD7173_ID 0x30d0 64 + #define AD7172_2_ID 0x00d0 66 65 #define AD7175_ID 0x0cd0 67 66 #define AD7176_ID 0x0c90 67 + #define AD7173_ID 0x30d0 68 68 #define AD7173_ID_MASK GENMASK(15, 4) 69 69 70 70 #define AD7173_ADC_MODE_REF_EN BIT(15) ··· 190 190 static const struct ad7173_device_info ad7173_device_info[] = { 191 191 [ID_AD7172_2] = { 192 192 .name = "ad7172-2", 193 - .id = AD7172_ID, 193 + .id = AD7172_2_ID, 194 194 .num_inputs = 5, 195 195 .num_channels = 4, 196 196 .num_configs = 4,