lib: Remove fpi_dev_get_nr_enroll_stages()

It's the same as fp_dev_get_nr_enroll_stages()
This commit is contained in:
Bastien Nocera 2018-09-15 01:23:02 +02:00
parent 5d01497b8b
commit 77defa1d8b
3 changed files with 1 additions and 8 deletions

View file

@ -534,12 +534,6 @@ fpi_dev_get_usb_dev(struct fp_dev *dev)
return dev->udev;
}
int
fpi_dev_get_nr_enroll_stages(struct fp_dev *dev)
{
return dev->nr_enroll_stages;
}
void
fpi_dev_set_nr_enroll_stages(struct fp_dev *dev,
int nr_enroll_stages)

View file

@ -647,7 +647,7 @@ static int action_completed(struct fp_img_dev *dev)
struct vfs101_dev *vdev = FP_INSTANCE_DATA(FP_DEV(dev));
if ((fpi_imgdev_get_action(dev) == IMG_ACTION_ENROLL) &&
(vdev->enroll_stage < fpi_dev_get_nr_enroll_stages(FP_DEV(dev))))
(vdev->enroll_stage < fp_dev_get_nr_enroll_stages(FP_DEV(dev))))
/* Enroll not completed, return false */
return FALSE;

View file

@ -38,7 +38,6 @@
#include "drivers/driver_ids.h"
libusb_device_handle *fpi_dev_get_usb_dev(struct fp_dev *dev);
int fpi_dev_get_nr_enroll_stages(struct fp_dev *dev);
void fpi_dev_set_nr_enroll_stages(struct fp_dev *dev, int nr_enroll_stages);
struct fp_print_data *fpi_dev_get_verify_data(struct fp_dev *dev);