Commit e0966cb2 authored by Vasily Khoruzhick's avatar Vasily Khoruzhick

vfs101: drop nr_enroll_stages override

Imaging drivers aren't allowed to change number of enroll stages anymore,
all that imaging driver does is providing image to the upper layer.
Upper layer decides if it needs more scans.
parent e278e832
......@@ -64,9 +64,6 @@
/* Best image contrast */
#define VFS_IMG_BEST_CONRAST 128
/* Number of enroll stages */
#define VFS_NR_ENROLL 3
/* Device parameters address */
#define VFS_PAR_000E 0x000e
#define VFS_PAR_0011 0x0011
......@@ -656,7 +653,7 @@ static int action_completed(struct fp_img_dev *dev)
struct vfs101_dev *vdev = dev->priv;
if ((dev->action == IMG_ACTION_ENROLL) &&
(vdev->enroll_stage < VFS_NR_ENROLL))
(vdev->enroll_stage < 1))
/* Enroll not completed, return false */
return FALSE;
......@@ -1511,9 +1508,6 @@ static int dev_open(struct fp_img_dev *dev, unsigned long driver_data)
return r;
}
/* Set enroll stage number */
dev->dev->nr_enroll_stages = VFS_NR_ENROLL;
/* Initialize private structure */
vdev = g_malloc0(sizeof(struct vfs101_dev));
vdev->seqnum = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment