Skip to content

Commit c1c0f87

Browse files
committed
adjust i2c bus lock mutex name
1 parent 09d4d5f commit c1c0f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/i2c/dev_i2c_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rt_err_t rt_i2c_bus_device_register(struct rt_i2c_bus_device *bus,
2424
{
2525
rt_err_t res = RT_EOK;
2626

27-
rt_mutex_init(&bus->lock, "i2c_bus_lock", RT_IPC_FLAG_PRIO);
27+
rt_mutex_init(&bus->lock, "i2c_lck", RT_IPC_FLAG_PRIO);
2828

2929
if (bus->timeout == 0) bus->timeout = RT_TICK_PER_SECOND;
3030

0 commit comments

Comments
 (0)