Commit b6ef5d4a authored by Alexandre Belloni's avatar Alexandre Belloni

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.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent eb7b8585
...@@ -982,6 +982,12 @@ static int rv3028_probe(struct i2c_client *client) ...@@ -982,6 +982,12 @@ static int rv3028_probe(struct i2c_client *client)
return 0; return 0;
} }
static const struct acpi_device_id rv3028_i2c_acpi_match[] = {
{ "MCRY3028" },
{ }
};
MODULE_DEVICE_TABLE(acpi, rv3028_i2c_acpi_match);
static const __maybe_unused struct of_device_id rv3028_of_match[] = { static const __maybe_unused struct of_device_id rv3028_of_match[] = {
{ .compatible = "microcrystal,rv3028", }, { .compatible = "microcrystal,rv3028", },
{ } { }
...@@ -991,6 +997,7 @@ MODULE_DEVICE_TABLE(of, rv3028_of_match); ...@@ -991,6 +997,7 @@ MODULE_DEVICE_TABLE(of, rv3028_of_match);
static struct i2c_driver rv3028_driver = { static struct i2c_driver rv3028_driver = {
.driver = { .driver = {
.name = "rtc-rv3028", .name = "rtc-rv3028",
.acpi_match_table = rv3028_i2c_acpi_match,
.of_match_table = of_match_ptr(rv3028_of_match), .of_match_table = of_match_ptr(rv3028_of_match),
}, },
.probe_new = rv3028_probe, .probe_new = rv3028_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment