Skip to content

Commit b6ef5d4

Browse files
rtc: rv3028: add ACPI support
The RV-3028 has been assigned the MCRY3028 ACPI ID. Link: https://lore.kernel.org/r/20230214202653.565647-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent eb7b858 commit b6ef5d4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/rtc/rtc-rv3028.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,12 @@ static int rv3028_probe(struct i2c_client *client)
982982
return 0;
983983
}
984984

985+
static const struct acpi_device_id rv3028_i2c_acpi_match[] = {
986+
{ "MCRY3028" },
987+
{ }
988+
};
989+
MODULE_DEVICE_TABLE(acpi, rv3028_i2c_acpi_match);
990+
985991
static const __maybe_unused struct of_device_id rv3028_of_match[] = {
986992
{ .compatible = "microcrystal,rv3028", },
987993
{ }
@@ -991,6 +997,7 @@ MODULE_DEVICE_TABLE(of, rv3028_of_match);
991997
static struct i2c_driver rv3028_driver = {
992998
.driver = {
993999
.name = "rtc-rv3028",
1000+
.acpi_match_table = rv3028_i2c_acpi_match,
9941001
.of_match_table = of_match_ptr(rv3028_of_match),
9951002
},
9961003
.probe_new = rv3028_probe,

0 commit comments

Comments
 (0)