From 06615f62b17d7de6e12d2f5ec6b88cf30af08413 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 23 Nov 2000 02:00:47 +0000 Subject: Merge with Linux 2.4.0-test10. --- drivers/usb/scanner.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/usb/scanner.h') diff --git a/drivers/usb/scanner.h b/drivers/usb/scanner.h index bf01c8082..c1ec964dc 100644 --- a/drivers/usb/scanner.h +++ b/drivers/usb/scanner.h @@ -30,6 +30,7 @@ #include #include #include +#include // #define DEBUG @@ -94,6 +95,7 @@ struct scn_usb_data { char *obuf, *ibuf; /* transfer buffers */ char bulk_in_ep, bulk_out_ep, intr_ep; /* Endpoint assignments */ wait_queue_head_t rd_wait_q; /* read timeouts */ + struct semaphore gen_lock; /* lock to prevent concurrent reads or writes */ }; static struct scn_usb_data *p_scn_table[SCN_MAX_MNR] = { NULL, /* ... */}; -- cgit v1.2.3