input/ads7843e: complement critical section operation

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2021-12-21 00:10:54 +08:00 committed by Xiang Xiao
parent ce1c8413a2
commit 928426295f
1 changed files with 1 additions and 0 deletions

View File

@ -1216,6 +1216,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi,
*/
#ifdef CONFIG_ADS7843E_MULTIPLE
flags = enter_critical_section();
priv->flink = g_ads7843elist;
g_ads7843elist = priv;
leave_critical_section(flags);