diff options
Diffstat (limited to 'driver/fingerprint')
-rw-r--r-- | driver/fingerprint/fpc/bep/fpc_private.c | 2 | ||||
-rw-r--r-- | driver/fingerprint/fpc/bep/fpc_private.h | 3 | ||||
-rw-r--r-- | driver/fingerprint/fpc/libfp/fpc_private.c | 2 | ||||
-rw-r--r-- | driver/fingerprint/fpc/libfp/fpc_private.h | 3 |
4 files changed, 8 insertions, 2 deletions
diff --git a/driver/fingerprint/fpc/bep/fpc_private.c b/driver/fingerprint/fpc/bep/fpc_private.c index 36ca0fe1b9..0a405d4ad5 100644 --- a/driver/fingerprint/fpc/bep/fpc_private.c +++ b/driver/fingerprint/fpc/bep/fpc_private.c @@ -114,7 +114,7 @@ void fp_sensor_low_power(void) fpc_send_cmd(FPC_CMD_DEEPSLEEP); } -static int fpc_check_hwid(void) +int fpc_check_hwid(void) { uint16_t id; int rc; diff --git a/driver/fingerprint/fpc/bep/fpc_private.h b/driver/fingerprint/fpc/bep/fpc_private.h index 5334779672..9a9acfd42a 100644 --- a/driver/fingerprint/fpc/bep/fpc_private.h +++ b/driver/fingerprint/fpc/bep/fpc_private.h @@ -34,4 +34,7 @@ typedef struct { int fp_sensor_maintenance(uint8_t *image_data, fp_sensor_info_t *fp_sensor_info); +/* Read the HWID from the sensor. */ +int fpc_check_hwid(void); + #endif /* __CROS_EC_FPC_PRIVATE_H */ diff --git a/driver/fingerprint/fpc/libfp/fpc_private.c b/driver/fingerprint/fpc/libfp/fpc_private.c index 8c11849c8f..623f110187 100644 --- a/driver/fingerprint/fpc/libfp/fpc_private.c +++ b/driver/fingerprint/fpc/libfp/fpc_private.c @@ -97,7 +97,7 @@ void fp_sensor_low_power(void) fpc_send_cmd(FPC_CMD_SLEEP); } -static int fpc_check_hwid(void) +int fpc_check_hwid(void) { uint16_t id; int rc; diff --git a/driver/fingerprint/fpc/libfp/fpc_private.h b/driver/fingerprint/fpc/libfp/fpc_private.h index 18feff3a49..95313726f6 100644 --- a/driver/fingerprint/fpc/libfp/fpc_private.h +++ b/driver/fingerprint/fpc/libfp/fpc_private.h @@ -125,4 +125,7 @@ typedef struct { int fp_sensor_maintenance(uint8_t *image_data, fp_sensor_info_t *fp_sensor_info); +/* Read the HWID from the sensor. */ +int fpc_check_hwid(void); + #endif /* __CROS_EC_FPC_PRIVATE_H */ |