From 17577175f8a27240858313b9fc3d7272d291b823 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 28 May 2018 12:20:13 +0200 Subject: [PATCH] lib: Remove fpi_driver_to_img_driver() from drivers API It's only used internally to the library. --- libfprint/drivers_api.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libfprint/drivers_api.h b/libfprint/drivers_api.h index 89799b1..a5c89bd 100644 --- a/libfprint/drivers_api.h +++ b/libfprint/drivers_api.h @@ -39,10 +39,6 @@ #define array_n_elements(array) G_N_ELEMENTS(array) -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) - #define fp_dbg g_debug #define fp_info g_debug #define fp_warn g_warning @@ -233,9 +229,6 @@ extern GSList *opened_devices; void fpi_img_driver_setup(struct fp_img_driver *idriver); -#define fpi_driver_to_img_driver(drv) \ - container_of((drv), struct fp_img_driver, driver) - struct fp_dscv_dev { struct libusb_device *udev; struct fp_driver *drv;