Skip to content

Commit 61a5a54

Browse files
CopilotBernardXiong
andcommitted
rename i2c mutex
Co-authored-by: BernardXiong <1241087+BernardXiong@users.noreply.github.com>
1 parent 85ca9bd commit 61a5a54

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_lock", RT_IPC_FLAG_PRIO);
2828

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

0 commit comments

Comments
 (0)