lib: Fix mess with driver IDs

ID is just a some magic number to make fingerprint from one scanner model
incompatible with another scanner model. Get rid of "magic", declare enum
and use it.

https://bugs.freedesktop.org/show_bug.cgi?id=56956
This commit is contained in:
Vasily Khoruzhick
2012-11-10 18:37:41 +03:00
committed by Bastien Nocera
parent ed2c75842a
commit ea6d5ba6d6
14 changed files with 78 additions and 13 deletions

View File

@@ -25,6 +25,8 @@
#include <fp_internal.h>
#include "driver_ids.h"
/* Input-Output usb endpoint */
#define EP_IN(n) (n | LIBUSB_ENDPOINT_IN)
#define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT)
@@ -1549,7 +1551,7 @@ struct fp_img_driver vfs101_driver =
/* Driver specification */
.driver =
{
.id = 10,
.id = VFS101_ID,
.name = FP_COMPONENT,
.full_name = "Validity VFS101",
.id_table = id_table,