Skip to content
Commit 43601095 authored by Aaron Massey's avatar Aaron Massey Committed by Carles Cufí
Browse files

emul: sbs_gauge: Return err or unsupported feature



The fuel gauge emulators will attempt to access a 0 pointer when running a
backend emulator function that hasn't been implemented.

Add an explicit runtime check to return -ENOTSUP to signify the emulator
feature is not supported. We do not ASSERT here so we can write tests that
are generic and can run with various emulators that support a variety of
features.

Signed-off-by: default avatarAaron Massey <aaronmassey@google.com>
parent d7c00ee7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment