Style changes.
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
diff --git a/miner.h b/miner.h
index c6548b3..6f1bd70 100644
--- a/miner.h
+++ b/miner.h
@@ -260,29 +260,29 @@ struct thr_info;
struct work;
struct device_api {
- char*dname;
- char*name;
+ char *dname;
+ char *name;
// API-global functions
void (*api_detect)();
// Device-specific functions
- void (*reinit_device)(struct cgpu_info*);
- void (*get_statline_before)(char*, struct cgpu_info*);
- void (*get_statline)(char*, struct cgpu_info*);
- struct api_data *(*get_api_stats)(struct cgpu_info*);
- bool (*get_stats)(struct cgpu_info*);
- void (*identify_device)(struct cgpu_info*); // e.g. to flash a led
+ void (*reinit_device)(struct cgpu_info *);
+ void (*get_statline_before)(char *, struct cgpu_info *);
+ void (*get_statline)(char *, struct cgpu_info *);
+ struct api_data *(*get_api_stats)(struct cgpu_info *);
+ bool (*get_stats)(struct cgpu_info *);
+ void (*identify_device)(struct cgpu_info *); // e.g. to flash a led
// Thread-specific functions
- bool (*thread_prepare)(struct thr_info*);
- uint64_t (*can_limit_work)(struct thr_info*);
- bool (*thread_init)(struct thr_info*);
- bool (*prepare_work)(struct thr_info*, struct work*);
- int64_t (*scanhash)(struct thr_info*, struct work*, int64_t);
- void (*hw_error)(struct thr_info*);
- void (*thread_shutdown)(struct thr_info*);
- void (*thread_enable)(struct thr_info*);
+ bool (*thread_prepare)(struct thr_info *);
+ uint64_t (*can_limit_work)(struct thr_info *);
+ bool (*thread_init)(struct thr_info *);
+ bool (*prepare_work)(struct thr_info *, struct work *);
+ int64_t (*scanhash)(struct thr_info *, struct work *, int64_t);
+ void (*hw_error)(struct thr_info *);
+ void (*thread_shutdown)(struct thr_info *);
+ void (*thread_enable)(struct thr_info *);
};
enum dev_enable {