summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/charger/chg_sm5803.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/charger/chg_sm5803.h')
-rw-r--r--zephyr/shim/include/charger/chg_sm5803.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/zephyr/shim/include/charger/chg_sm5803.h b/zephyr/shim/include/charger/chg_sm5803.h
index 7e18a5554b..65ef066970 100644
--- a/zephyr/shim/include/charger/chg_sm5803.h
+++ b/zephyr/shim/include/charger/chg_sm5803.h
@@ -1,4 +1,4 @@
-/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -8,9 +8,9 @@
#define SM5803_CHG_COMPAT siliconmitus_sm5803
-#define CHG_CONFIG_SM5803(id) \
- { \
- .i2c_port = I2C_PORT(DT_PHANDLE(id, port)), \
- .i2c_addr_flags = SM5803_ADDR_CHARGER_FLAGS, \
- .drv = &sm5803_drv, \
+#define CHG_CONFIG_SM5803(id) \
+ { \
+ .i2c_port = I2C_PORT_BY_DEV(id), \
+ .i2c_addr_flags = DT_REG_ADDR(id), \
+ .drv = &sm5803_drv, \
},