1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
openmptcprouter/6.12/target/linux/bcm27xx/patches-6.12/950-0312-rtc-ds3232-Add-DT-compatible-string-for-ds3234.patch
Ycarus (Yannick Chabanois) bdb9b0046f Add bcm27xx 6.12 test support
2024-12-20 14:17:26 +01:00

29 lines
872 B
Diff

From 9d694a218f041ee887245eed41d0fb7fee43e8da Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 7 Mar 2023 20:51:53 +0000
Subject: [PATCH 312/697] rtc: ds3232: Add DT compatible string for ds3234
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/rtc/rtc-ds3232.c | 7 +++++++
1 file changed, 7 insertions(+)
--- a/drivers/rtc/rtc-ds3232.c
+++ b/drivers/rtc/rtc-ds3232.c
@@ -701,9 +701,16 @@ static int ds3234_probe(struct spi_devic
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,
};