summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <[email protected]>2026-02-02 09:45:19 +0000
committerR b b666 <[email protected]>2026-02-04 09:47:00 +0800
commit5e04105723f6de5ffcd5e6b843b489f52cdc679b (patch)
tree4ded650cc1a169b0937e37607eb82f90e5d2127a
parent4d063acc297165c5125163f4a36a2465357781f5 (diff)
rename i2c mutex
Co-authored-by: BernardXiong <[email protected]>
-rw-r--r--components/drivers/i2c/dev_i2c_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/i2c/dev_i2c_core.c b/components/drivers/i2c/dev_i2c_core.c
index 9d9bf6b23d..97c860f829 100644
--- a/components/drivers/i2c/dev_i2c_core.c
+++ b/components/drivers/i2c/dev_i2c_core.c
@@ -24,7 +24,7 @@ rt_err_t rt_i2c_bus_device_register(struct rt_i2c_bus_device *bus,
{
rt_err_t res = RT_EOK;
- rt_mutex_init(&bus->lock, "i2c_bus_lock", RT_IPC_FLAG_PRIO);
+ rt_mutex_init(&bus->lock, "i2c_lock", RT_IPC_FLAG_PRIO);
if (bus->timeout == 0) bus->timeout = RT_TICK_PER_SECOND;