diff options
author | Tom Hughes <tomhughes@chromium.org> | 2020-06-12 11:46:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-06 19:49:13 +0000 |
commit | 821d9748590b7fc4bde0ecb40037677b44d4186b (patch) | |
tree | c38c118db660d7599c9e62dffee231df6c5b0c3a /driver/fingerprint/fpc/bep/fpc_private.c | |
parent | d8181ef0bda7c7bd458348bd8f82a97da0278e16 (diff) | |
download | chrome-ec-821d9748590b7fc4bde0ecb40037677b44d4186b.tar.gz |
driver/fingerprint: Set dead pixels to unknown on init in BEP
This matches the behavior in the libfp driver.
BRANCH=none
BUG=b:76037094
TEST=make buildall -j
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Iec52b30be448a40f51baf03ddb9b8e8b0ddeb28f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2321829
Reviewed-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'driver/fingerprint/fpc/bep/fpc_private.c')
-rw-r--r-- | driver/fingerprint/fpc/bep/fpc_private.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/fingerprint/fpc/bep/fpc_private.c b/driver/fingerprint/fpc/bep/fpc_private.c index 61bad9f101..7621edabd3 100644 --- a/driver/fingerprint/fpc/bep/fpc_private.c +++ b/driver/fingerprint/fpc/bep/fpc_private.c @@ -155,6 +155,8 @@ int fp_sensor_init(void) /* Print the BEP version and build time of the library */ CPRINTS("Build information - %s", fp_sensor_get_build_info()); + errors = FP_ERROR_DEAD_PIXELS_UNKNOWN; + rc = fp_sensor_open(); if (rc) { errors |= FP_ERROR_INIT_FAIL; |