Skip to content
Commit e98920d6 authored by Tim Lin's avatar Tim Lin Committed by Johan Hedberg
Browse files

drivers/i2c: it51xxx: Fix build assert to check port number instead of inst



Currently the build assert checks the number of I2C instances as
the available I2C target mode, which is incorrect.
This patch updates the build assert to check the I2C port_num instead,
since IT51xxx only supports I2C target mode on ports 0 to 2.

Signed-off-by: default avatarTim Lin <tim2.lin@ite.corp-partner.google.com>
parent 637082ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment