Browse Source

icarus: expose do_icarus_close

Nate Woolls 12 years ago
parent
commit
cec92aa81e
2 changed files with 2 additions and 1 deletions
  1. 1 1
      driver-icarus.c
  2. 1 0
      icarus-common.h

+ 1 - 1
driver-icarus.c

@@ -276,7 +276,7 @@ int icarus_write(int fd, const void *buf, size_t bufLen)
 
 #define icarus_close(fd) serial_close(fd)
 
-static void do_icarus_close(struct thr_info *thr)
+void do_icarus_close(struct thr_info *thr)
 {
 	struct cgpu_info *icarus = thr->cgpu;
 	const int fd = icarus->device_fd;

+ 1 - 0
icarus-common.h

@@ -126,5 +126,6 @@ struct icarus_state {
 bool icarus_detect_custom(const char *devpath, struct device_drv *, struct ICARUS_INFO *);
 extern int icarus_gets(unsigned char *, int fd, struct timeval *tv_finish, struct thr_info *, int read_count, int read_size);
 extern int icarus_write(int fd, const void *buf, size_t bufLen);
+extern void do_icarus_close(struct thr_info *thr);
 
 #endif