hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/mfd/axp20x-i2c.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * I2C driver for the X-Powers' Power Management ICs
34 *
....@@ -10,10 +11,6 @@
1011 * Copyright (C) 2014 Carlo Caione
1112 *
1213 * Author: Carlo Caione <carlo@caione.org>
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
1714 */
1815
1916 #include <linux/acpi.h>
....@@ -65,6 +62,8 @@
6562 { .compatible = "x-powers,axp202", .data = (void *)AXP202_ID },
6663 { .compatible = "x-powers,axp209", .data = (void *)AXP209_ID },
6764 { .compatible = "x-powers,axp221", .data = (void *)AXP221_ID },
65
+ { .compatible = "x-powers,axp223", .data = (void *)AXP223_ID },
66
+ { .compatible = "x-powers,axp803", .data = (void *)AXP803_ID },
6867 { .compatible = "x-powers,axp806", .data = (void *)AXP806_ID },
6968 { },
7069 };
....@@ -75,11 +74,14 @@
7574 { "axp202", 0 },
7675 { "axp209", 0 },
7776 { "axp221", 0 },
77
+ { "axp223", 0 },
78
+ { "axp803", 0 },
7879 { "axp806", 0 },
7980 { },
8081 };
8182 MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id);
8283
84
+#ifdef CONFIG_ACPI
8385 static const struct acpi_device_id axp20x_i2c_acpi_match[] = {
8486 {
8587 .id = "INT33F4",
....@@ -88,6 +90,7 @@
8890 { },
8991 };
9092 MODULE_DEVICE_TABLE(acpi, axp20x_i2c_acpi_match);
93
+#endif
9194
9295 static struct i2c_driver axp20x_i2c_driver = {
9396 .driver = {