diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2013-03-04 17:50:54 +0300 |
---|---|---|
committer | Vasily Khoruzhick <anarsoul@gmail.com> | 2013-08-19 11:13:49 +0300 |
commit | e0966cb20fb7cf1c9ee8165428f5d3810e2e8c4e (patch) | |
tree | 3bc09422d1725ab4f51cac9d6f334291cccc127a /libfprint | |
parent | e278e8321cb91bcbf577d05778fe6553a14b4f14 (diff) |
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.
Diffstat (limited to 'libfprint')
-rw-r--r-- | libfprint/drivers/vfs101.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libfprint/drivers/vfs101.c b/libfprint/drivers/vfs101.c index 95e654f..db0b06e 100644 --- a/libfprint/drivers/vfs101.c +++ b/libfprint/drivers/vfs101.c @@ -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; |