input/ads7843e: complement critical section operation
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
ce1c8413a2
commit
928426295f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue