Rename sp10 driver internally from spondoolies to sp10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/driver-spondoolies-sp10.c b/driver-spondoolies-sp10.c
index f8ff667..59cc9f9 100644
--- a/driver-spondoolies-sp10.c
+++ b/driver-spondoolies-sp10.c
@@ -144,7 +144,7 @@ static bool spondoolies_flush_queue(struct spond_adapter* a, bool flush_queue)
static void spondoolies_detect(__maybe_unused bool hotplug)
{
struct cgpu_info *cgpu = calloc(1, sizeof(*cgpu));
- struct device_drv *drv = &spondoolies_drv;
+ struct device_drv *drv = &sp10_drv;
struct spond_adapter *a;
#if NEED_FIX
@@ -430,8 +430,8 @@ static void spond_flush_work(struct cgpu_info *cgpu)
mutex_unlock(&a->lock);
}
-struct device_drv spondoolies_drv = {
- .drv_id = DRIVER_spondoolies,
+struct device_drv sp10_drv = {
+ .drv_id = DRIVER_sp10,
.dname = "Spondoolies",
.name = "SPN",
.max_diff = 64.0, // Limit max diff to get some nonces back regardless
diff --git a/miner.h b/miner.h
index f2d706b..c649648 100644
--- a/miner.h
+++ b/miner.h
@@ -244,7 +244,7 @@ static inline int fsync (int fd)
DRIVER_ADD_COMMAND(drillbit) \
DRIVER_ADD_COMMAND(bab) \
DRIVER_ADD_COMMAND(minion) \
- DRIVER_ADD_COMMAND(spondoolies) \
+ DRIVER_ADD_COMMAND(sp10) \
DRIVER_ADD_COMMAND(sp30)
#define DRIVER_PARSE_COMMANDS(DRIVER_ADD_COMMAND) \