MMQ lowercase new string constants
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
diff --git a/driver-modminer.c b/driver-modminer.c
index 702da0c..07f4400 100644
--- a/driver-modminer.c
+++ b/driver-modminer.c
@@ -599,11 +599,11 @@ static bool modminer_fpga_prepare(struct thr_info *thr)
*
* N.B. clock must always be a multiple of 2
*/
-static const char *CLOCKOLDWORK = "clock already changed for this work";
-static const char *CLOCKTOOLOW = "clock too low";
-static const char *CLOCKTOOHI = "clock too high";
-static const char *CLOCKSETFAIL = "clock set command failed";
-static const char *CLOCKREPLYFAIL = "clock reply failed";
+static const char *clockoldwork = "clock already changed for this work";
+static const char *clocktoolow = "clock too low";
+static const char *clocktoohi = "clock too high";
+static const char *clocksetfail = "clock set command failed";
+static const char *clockreplyfail = "clock reply failed";
static const char *modminer_delta_clock(struct thr_info *thr, int delta, bool temp, bool force)
{
@@ -614,7 +614,7 @@ static const char *modminer_delta_clock(struct thr_info *thr, int delta, bool te
// Only do once if multiple shares per work or multiple reasons
if (!state->new_work && !force)
- return CLOCKOLDWORK;
+ return clockoldwork;
state->new_work = false;
@@ -624,10 +624,10 @@ static const char *modminer_delta_clock(struct thr_info *thr, int delta, bool te
// FYI clock drop has little effect on temp
if (delta < 0 && modminer->clock <= MODMINER_MIN_CLOCK)
- return CLOCKTOOLOW;
+ return clocktoolow;
if (delta > 0 && modminer->clock >= MODMINER_MAX_CLOCK)
- return CLOCKTOOHI;
+ return clocktoohi;
if (delta < 0) {
if (temp)
@@ -655,7 +655,7 @@ static const char *modminer_delta_clock(struct thr_info *thr, int delta, bool te
applog(LOG_ERR, "%s%u: Error writing set clock speed (%d:%d)",
modminer->api->name, modminer->device_id, amount, err);
- return CLOCKSETFAIL;
+ return clocksetfail;
}
if ((err = usb_read(modminer, (char *)(&buf), 1, &amount, C_REPLYSETCLOCK)) < 0 || amount != 1) {
@@ -664,7 +664,7 @@ static const char *modminer_delta_clock(struct thr_info *thr, int delta, bool te
applog(LOG_ERR, "%s%u: Error reading set clock speed (%d:%d)",
modminer->api->name, modminer->device_id, amount, err);
- return CLOCKREPLYFAIL;
+ return clockreplyfail;
}
mutex_unlock(modminer->modminer_mutex);