eeprom: at24: extend the list of chips supported in DT
authorBartosz Golaszewski <brgl@bgdev.pl>
Thu, 28 Dec 2017 10:49:13 +0000 (11:49 +0100)
committerBartosz Golaszewski <brgl@bgdev.pl>
Tue, 2 Jan 2018 16:52:45 +0000 (17:52 +0100)
Add all supported at24 variants to the of_match table.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
drivers/misc/eeprom/at24.c

index e79833d62284b3b000281d8c436b274192df8292..01f9c4921c5087c6bcc0e9dc482eaaed5495a0fb 100644 (file)
@@ -209,13 +209,22 @@ MODULE_DEVICE_TABLE(i2c, at24_ids);
 static const struct of_device_id at24_of_match[] = {
        { .compatible = "atmel,24c00",          .data = &at24_data_24c00 },
        { .compatible = "atmel,24c01",          .data = &at24_data_24c01 },
+       { .compatible = "atmel,24cs01",         .data = &at24_data_24cs01 },
        { .compatible = "atmel,24c02",          .data = &at24_data_24c02 },
+       { .compatible = "atmel,24cs02",         .data = &at24_data_24cs02 },
+       { .compatible = "atmel,24mac402",       .data = &at24_data_24mac402 },
+       { .compatible = "atmel,24mac602",       .data = &at24_data_24mac602 },
        { .compatible = "atmel,spd",            .data = &at24_data_spd },
        { .compatible = "atmel,24c04",          .data = &at24_data_24c04 },
+       { .compatible = "atmel,24cs04",         .data = &at24_data_24cs04 },
        { .compatible = "atmel,24c08",          .data = &at24_data_24c08 },
+       { .compatible = "atmel,24cs08",         .data = &at24_data_24cs08 },
        { .compatible = "atmel,24c16",          .data = &at24_data_24c16 },
+       { .compatible = "atmel,24cs16",         .data = &at24_data_24cs16 },
        { .compatible = "atmel,24c32",          .data = &at24_data_24c32 },
+       { .compatible = "atmel,24cs32",         .data = &at24_data_24cs32 },
        { .compatible = "atmel,24c64",          .data = &at24_data_24c64 },
+       { .compatible = "atmel,24cs64",         .data = &at24_data_24cs64 },
        { .compatible = "atmel,24c128",         .data = &at24_data_24c128 },
        { .compatible = "atmel,24c256",         .data = &at24_data_24c256 },
        { .compatible = "atmel,24c512",         .data = &at24_data_24c512 },