rtc: ds3232: Add DT compatible string for ds3234

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
Phil Elwell
2023-03-07 20:51:53 +00:00
committed by Dom Cobley
parent a80ea84d93
commit c0f88873d7

View File

@@ -681,9 +681,16 @@ static int ds3234_probe(struct spi_device *spi)
return ds3232_probe(&spi->dev, regmap, spi->irq, "ds3234");
}
static const __maybe_unused struct of_device_id ds3234_of_match[] = {
{ .compatible = "dallas,ds3234" },
{ }
};
MODULE_DEVICE_TABLE(of, ds3234_of_match);
static struct spi_driver ds3234_driver = {
.driver = {
.name = "ds3234",
.of_match_table = of_match_ptr(ds3234_of_match),
},
.probe = ds3234_probe,
};