drivers/sensor: lis2dw12: Preserve APIs error code

Return the same error code returned by HAL i/f APIs.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
1 file changed