Skip to content

Commit dad70c4

Browse files
fabiobaltieriqipengzha
authored andcommitted
driver: i2c: npcx_controller: use the non I2C device init macro
The i2c_npcx_controller does not actually implement the i2c API, that's implemented in the port driver and the controller one is in support of that. This means there's no need to use the I2C specific instance define, as that would end up adding the stats structure that would never get used. This was originally added in 7b1349c. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 42eb863 commit dad70c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/i2c_npcx_controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ static int i2c_ctrl_init(const struct device *dev)
11091109
\
11101110
static struct i2c_ctrl_data i2c_ctrl_data_##inst; \
11111111
\
1112-
I2C_DEVICE_DT_INST_DEFINE(inst, \
1112+
DEVICE_DT_INST_DEFINE(inst, \
11131113
NPCX_I2C_CTRL_INIT_FUNC(inst), \
11141114
NULL, \
11151115
&i2c_ctrl_data_##inst, &i2c_ctrl_cfg_##inst, \

0 commit comments

Comments
 (0)