mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
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:
committed by
Bastien Nocera
parent
ed2c75842a
commit
ea6d5ba6d6
@@ -32,6 +32,8 @@
|
||||
#include <aeslib.h>
|
||||
#include <fp_internal.h>
|
||||
|
||||
#include "driver_ids.h"
|
||||
|
||||
static void start_capture(struct fp_img_dev *dev);
|
||||
static void complete_deactivation(struct fp_img_dev *dev);
|
||||
static int adjust_gain(unsigned char *buffer, int status);
|
||||
@@ -935,7 +937,7 @@ static const struct usb_id id_table[] = {
|
||||
|
||||
struct fp_img_driver aes1610_driver = {
|
||||
.driver = {
|
||||
.id = 6,
|
||||
.id = AES1610_ID,
|
||||
.name = FP_COMPONENT,
|
||||
.full_name = "AuthenTec AES1610",
|
||||
.id_table = id_table,
|
||||
|
||||
Reference in New Issue
Block a user