diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-11-30 17:05:42 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-01 06:02:51 +0000 |
commit | dde3e173f71a81ab4ecbb2dfaeb188b8ba877fcc (patch) | |
tree | 2d31352b4028302ceb2a89feb8d00aad6ba4a92c /driver | |
parent | 1e8809d732b006f029ce223d66774ae716946ff6 (diff) | |
download | chrome-ec-dde3e173f71a81ab4ecbb2dfaeb188b8ba877fcc.tar.gz |
tcpm/rt1718s: uses mutex_t instead
We should use mutex_t type for both cros-ec and zephyr code base.
BUG=none
TEST=zmake testall; make buildall
BRANCH=none
Change-Id: I6c9bc7d00b9959ab12159da6e25df2776497abad
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3306771
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/rt1718s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/tcpm/rt1718s.c b/driver/tcpm/rt1718s.c index 9d5a8895ad..b152ca602f 100644 --- a/driver/tcpm/rt1718s.c +++ b/driver/tcpm/rt1718s.c @@ -428,7 +428,7 @@ static int rt1718s_enter_low_power_mode(int port) int rt1718s_get_adc(int port, enum rt1718s_adc_channel channel, int *adc_val) { - static struct mutex adc_lock; + static mutex_t adc_lock; int rv; const int max_wait_times = 30; |