mpfs/i2c: fix bus initialize for i2c1
This commit is contained in:
parent
1e3919e55a
commit
8b560e7894
1 changed files with 2 additions and 2 deletions
|
|
@ -764,11 +764,11 @@ struct i2c_master_s *mpfs_i2cbus_initialize(int port)
|
|||
priv = &g_mpfs_i2c0_lo_priv;
|
||||
break;
|
||||
#endif /* CONFIG_MPFS_I2C0 */
|
||||
#ifdef CONFIG_MPFS_I2C0
|
||||
#ifdef CONFIG_MPFS_I2C1
|
||||
case 1:
|
||||
priv = &g_mpfs_i2c1_lo_priv;
|
||||
break;
|
||||
#endif /* CONFIG_MPFS_I2C0 */
|
||||
#endif /* CONFIG_MPFS_I2C1 */
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue