|
@@ -5,7 +5,7 @@
|
|
|
#include <stdint.h>
|
|
#include <stdint.h>
|
|
|
#include <sys/time.h>
|
|
#include <sys/time.h>
|
|
|
|
|
|
|
|
-#include <uthash.h>
|
|
|
|
|
|
|
+#include <utlist.h>
|
|
|
|
|
|
|
|
#include "miner.h"
|
|
#include "miner.h"
|
|
|
|
|
|
|
@@ -23,9 +23,9 @@ extern struct driver_registration *_bfg_drvreg2;
|
|
|
extern void bfg_devapi_init();
|
|
extern void bfg_devapi_init();
|
|
|
|
|
|
|
|
#define BFG_FOREACH_DRIVER_BY_DNAME(reg, tmp) \
|
|
#define BFG_FOREACH_DRIVER_BY_DNAME(reg, tmp) \
|
|
|
- LL_FOREACH_SAFE2(_bfg_drvreg1, reg, tmp, next_dname)
|
|
|
|
|
|
|
+ LL_FOREACH2(_bfg_drvreg1, tmp=reg, next_dname)
|
|
|
#define BFG_FOREACH_DRIVER_BY_PRIORITY(reg, tmp) \
|
|
#define BFG_FOREACH_DRIVER_BY_PRIORITY(reg, tmp) \
|
|
|
- LL_FOREACH_SAFE2(_bfg_drvreg2, reg, tmp, next_prio)
|
|
|
|
|
|
|
+ LL_FOREACH2(_bfg_drvreg2, tmp=reg, next_prio)
|
|
|
|
|
|
|
|
extern void _bfg_register_driver(const struct device_drv *);
|
|
extern void _bfg_register_driver(const struct device_drv *);
|
|
|
#define BFG_REGISTER_DRIVER(drv) \
|
|
#define BFG_REGISTER_DRIVER(drv) \
|