  
  	return true;
  }
-@@ -668,12 +788,25 @@ static int polling(struct thr_info *thr)
+@@ -668,12 +804,25 @@ static int polling(struct thr_info *thr)
  	struct cgpu_info *avalon2 = thr->cgpu;
  	struct avalon2_info *info = avalon2->device_data;
  

 static void avalon2_shutdown(struct thr_info *thr)
 {
 	struct cgpu_info *avalon = thr->cgpu;
@@ -889,6 +1119,7 @@ struct device_drv avalon2_drv = {
 	.dname = "avalon2",
 	.name = "AV2",
 	.get_api_stats = avalon2_api_stats,

 #define AVA2_DEFAULT_FAN_MAX	100
 
-#define AVA2_DEFAULT_VOLTAGE	10000 /* V * 10000 */
+#define AVALON2_TEMP_OVERHEAT	98
+#define AVALON2_DEFAULT_POLLING_DELAY	20 /* ms */
+
 #define AVA2_DEFAULT_VOLTAGE_MIN	6000
