  	.reinit_device = avalon2_init,
  	.thread_prepare = avalon2_prepare,
 diff --git a/driver-avalon2.h b/driver-avalon2.h
-index ee1fb61..9512cef 100644
+index ee1fb61..924d403 100644
 --- a/driver-avalon2.h
 +++ b/driver-avalon2.h
 @@ -21,8 +21,6 @@

 			t = info->temp[i];
 	}
 	return t;
@@ -187,18 +235,49 @@ static inline uint32_t decode_voltage(uint32_t v)
 	return (0x78 - (rev8(v >> 8) >> 1)) * 125;
 }
 

 	}
 	return h * 0xffffffff;
 }
@@ -783,18 +994,11 @@ static struct api_data *avalon2_api_stats(struct cgpu_info *cgpu)
 	int i, j, a, b;
 	char buf[24];
 	double hwp;
