projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c9afc7
)
rtc: ds3232: Add DT compatible string for ds3234
author
Phil Elwell
<phil@raspberrypi.com>
Tue, 7 Mar 2023 20:51:53 +0000
(20:51 +0000)
committer
Dom Cobley
<popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:28 +0000
(11:33 +0000)
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/rtc/rtc-ds3232.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-ds3232.c
b/drivers/rtc/rtc-ds3232.c
index
89d7b08
..
3ebddce
100644
(file)
--- a/
drivers/rtc/rtc-ds3232.c
+++ b/
drivers/rtc/rtc-ds3232.c
@@
-701,9
+701,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,
};