blob: c4d14fddf465c792a5be07d5518a9dac165a0fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "fingerprint_common.h"
void set_sensor_type(const int type_value, int *sensortype)
{
if (type_value >= SENSOR_OOO && type_value < SENSOR_MAXIMUM) {
if (type_value == SENSOR_OOO && *sensortype == SENSOR_FAILED) {
pr_info("maintain type check from out of order :%s\n",
sensor_status[*sensortype + 2]);
} else {
*sensortype = type_value;
pr_info("FP_SET_SENSOR_TYPE :%s\n", sensor_status[*sensortype + 2]);
}
} else {
pr_err("FP_SET_SENSOR_TYPE invalid value %d\n", type_value);
*sensortype = SENSOR_UNKNOWN;
}
}
|