Skip to content

Commit 2d433e9

Browse files
rtc: rv3032: add ACPI support
The RV-3032 has been assigned the MCRY3032 ACPI ID. Link: https://lore.kernel.org/r/20230214202716.565749-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent b6ef5d4 commit 2d433e9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/rtc/rtc-rv3032.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,12 @@ static int rv3032_probe(struct i2c_client *client)
980980
return 0;
981981
}
982982

983+
static const struct acpi_device_id rv3032_i2c_acpi_match[] = {
984+
{ "MCRY3032" },
985+
{ }
986+
};
987+
MODULE_DEVICE_TABLE(acpi, rv3032_i2c_acpi_match);
988+
983989
static const __maybe_unused struct of_device_id rv3032_of_match[] = {
984990
{ .compatible = "microcrystal,rv3032", },
985991
{ }
@@ -989,6 +995,7 @@ MODULE_DEVICE_TABLE(of, rv3032_of_match);
989995
static struct i2c_driver rv3032_driver = {
990996
.driver = {
991997
.name = "rtc-rv3032",
998+
.acpi_match_table = rv3032_i2c_acpi_match,
992999
.of_match_table = of_match_ptr(rv3032_of_match),
9931000
},
9941001
.probe_new = rv3032_probe,

0 commit comments

Comments
 (0)