msm8916-openwrt/target/linux/bcm27xx/patches-6.6/950-0419-rtc-ds3232-Add-DT-compatible-string-for-ds3234.patch
Álvaro Fernández Rojas 8c405cdccc bcm27xx: add 6.6 kernel patches
The patches were generated from the RPi repo with the following command:
git format-patch v6.6.34..rpi-6.1.y

Some patches needed rebasing and, as usual, the applied and reverted, wireless
drivers, Github workflows, READMEs and defconfigs patches were removed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-06-18 18:52:49 +02:00

30 lines
874 B
Diff

From 3643b2972380224108decb72054868ce66557bb9 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 7 Mar 2023 20:51:53 +0000
Subject: [PATCH 0419/1085] 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,
};