elan: Use IMGDEV_STATE_* events instead of pre-set capture path

This commit is contained in:
Igor Filatov
2018-02-05 11:56:58 +02:00
committed by Bastien Nocera
parent c3b1c982bc
commit b28b006d61
2 changed files with 109 additions and 53 deletions

View File

@@ -130,7 +130,7 @@ static const struct elan_cmd led_on_cmd = {
.cmd = {0x40, 0x31},
.response_len = ELAN_CMD_SKIP_READ,
.response_in = ELAN_EP_CMD_IN,
.devices = ELAN_0907,
.devices = ELAN_ALL_DEV,
};
/* wait for finger
@@ -214,4 +214,6 @@ static void elan_calibrate(struct fp_img_dev *dev);
static void elan_capture(struct fp_img_dev *dev);
static void elan_deactivate(struct fp_img_dev *dev);
static int dev_change_state(struct fp_img_dev *dev, enum fp_imgdev_state state);
#endif