]> www.infradead.org Git - linux.git/commitdiff
iio: adc: ad7173: Add ad7173_device_info names
authorDumitru Ceclan <dumitru.ceclan@analog.com>
Tue, 21 May 2024 08:45:40 +0000 (11:45 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2024 08:49:20 +0000 (09:49 +0100)
Add missing names from the device info struct for 3 models to ensure
consistency with the rest of the models.

Fixes: 76a1e6a42802 ("iio: adc: ad7173: add AD7173 driver")
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com>
Link: https://lore.kernel.org/r/20240521-ad7173-fixes-v1-2-8161cc7f3ad1@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c

index 91acedaddb576f6e50ef245cb86eac7bbd560f6e..4649af5f9d76817c5a7ee6d6de6b6b775938b252 100644 (file)
@@ -220,6 +220,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
                .num_sinc5_data_rates = ARRAY_SIZE(ad7173_sinc5_data_rates),
        },
        [ID_AD7172_4] = {
+               .name = "ad7172-4",
                .id = AD7172_4_ID,
                .num_inputs = 9,
                .num_channels = 8,
@@ -262,6 +263,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
                .num_sinc5_data_rates = ARRAY_SIZE(ad7175_sinc5_data_rates),
        },
        [ID_AD7175_8] = {
+               .name = "ad7175-8",
                .id = AD7175_8_ID,
                .num_inputs = 17,
                .num_channels = 16,
@@ -290,6 +292,7 @@ static const struct ad7173_device_info ad7173_device_info[] = {
                .num_sinc5_data_rates = ARRAY_SIZE(ad7175_sinc5_data_rates),
        },
        [ID_AD7177_2] = {
+               .name = "ad7177-2",
                .id = AD7177_ID,
                .num_inputs = 5,
                .num_channels = 4,