lib: Remove fpi_driver_to_img_driver() from drivers API

It's only used internally to the library.
This commit is contained in:
Bastien Nocera 2018-05-28 12:20:13 +02:00
parent 933fab6ed4
commit 17577175f8

View file

@ -39,10 +39,6 @@
#define array_n_elements(array) G_N_ELEMENTS(array) #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_dbg g_debug
#define fp_info g_debug #define fp_info g_debug
#define fp_warn g_warning #define fp_warn g_warning
@ -233,9 +229,6 @@ extern GSList *opened_devices;
void fpi_img_driver_setup(struct fp_img_driver *idriver); 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 fp_dscv_dev {
struct libusb_device *udev; struct libusb_device *udev;
struct fp_driver *drv; struct fp_driver *drv;