mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-13 06:01:03 +00:00
Use correct struct device_drv for avalon_drv.
This commit is contained in:
parent
23fa953bfc
commit
2f371f13f5
@ -40,7 +40,7 @@
|
||||
|
||||
static int option_offset = -1;
|
||||
struct avalon_info **avalon_info;
|
||||
struct device_drv avalon_api;
|
||||
struct device_drv avalon_drv;
|
||||
|
||||
static int avalon_init_task(struct avalon_task *at,
|
||||
uint8_t reset, uint8_t ff, uint8_t fan,
|
||||
@ -552,7 +552,7 @@ static bool avalon_detect_one(const char *devpath)
|
||||
|
||||
/* We have a real Avalon! */
|
||||
avalon = calloc(1, sizeof(struct cgpu_info));
|
||||
avalon->drv = &avalon_api;
|
||||
avalon->drv = &avalon_drv;
|
||||
avalon->device_path = strdup(devpath);
|
||||
avalon->device_fd = fd;
|
||||
avalon->threads = AVALON_MINER_THREADS;
|
||||
@ -613,7 +613,7 @@ static bool avalon_detect_one(const char *devpath)
|
||||
|
||||
static inline void avalon_detect()
|
||||
{
|
||||
serial_detect(&avalon_api, avalon_detect_one);
|
||||
serial_detect(&avalon_drv, avalon_detect_one);
|
||||
}
|
||||
|
||||
static void __avalon_init(struct cgpu_info *avalon)
|
||||
|
Loading…
x
Reference in New Issue
Block a user