|
@@ -277,12 +277,21 @@ bool nanofury_init(struct thr_info * const thr)
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static
|
|
|
|
|
+void nanofury_shutdown(struct thr_info * const thr)
|
|
|
|
|
+{
|
|
|
|
|
+ struct mcp2210_device * const mcp = thr->cgpu_data;
|
|
|
|
|
+
|
|
|
|
|
+ nanofury_device_off(mcp);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
struct device_drv nanofury_drv = {
|
|
struct device_drv nanofury_drv = {
|
|
|
.dname = "nanofury",
|
|
.dname = "nanofury",
|
|
|
.name = "NFY",
|
|
.name = "NFY",
|
|
|
.drv_detect = nanofury_detect,
|
|
.drv_detect = nanofury_detect,
|
|
|
|
|
|
|
|
.thread_init = nanofury_init,
|
|
.thread_init = nanofury_init,
|
|
|
|
|
+ .thread_shutdown = nanofury_shutdown,
|
|
|
|
|
|
|
|
.minerloop = minerloop_async,
|
|
.minerloop = minerloop_async,
|
|
|
.job_prepare = bitfury_job_prepare,
|
|
.job_prepare = bitfury_job_prepare,
|