Skip to content
Commit 2a97a0a9 authored by Vincent Geneves's avatar Vincent Geneves Committed by Carles Cufí
Browse files

drivers: i2c_ll_stm32_v2: Fix logic in target_unregister



Logic was wrong when testing if a slave is still attached. And i2c
driver was never disabled.

Test if one of the two slave_cfg pointer is not NULL to return
immediately.

Signed-off-by: default avatarVincent Geneves <vgeneves@kalray.eu>
parent b8b1d75a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment