commit | ba786843afe034d0c50742dbe63582227a22f75e | [log] [tgz] |
---|---|---|
author | Fabio Baltieri <fabiobaltieri@google.com> | Fri Jun 25 15:59:37 2021 +0000 |
committer | Anas Nashif <anas.nashif@intel.com> | Sun Jun 27 23:02:39 2021 -0400 |
tree | 65c73e423eb0391b6f334de5951e4aa15fa26318 | |
parent | 3af832868c7c7b9a81c66ea62bcaef011e574d61 [diff] |
drivers: i2c_npcx_port: convert the driver to use DEVICE_DT_GET Use DEVICE_DT_GET instead of device_get_binding to obtain the controller node, so that the device address gets resolved at link time. This means we can move the pointer form the data to the config structure, and get rid of the data structure and associated boilerplate entirely. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>