Skip to content

Commit

Permalink
HID: intel-ish-hid: ipc: remove unused macro
Browse files Browse the repository at this point in the history
The macro timed_wait_for() in utils.h isn't used in current ipc
driver, so remove it for avoiding confusion.

Signed-off-by: Even Xu <even.xu@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Even Xu authored and Jiri Kosina committed Nov 16, 2016
1 parent c1f4c2b commit fa39baa
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions drivers/hid/intel-ish-hid/ipc/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
#define WAIT_FOR_SEND_SLICE (HZ / 10)
#define WAIT_FOR_CONNECT_SLICE (HZ / 10)

/*
* Waits for specified event when a thread that triggers event can't signal
* Also, waits *at_least* `timeinc` after condition is satisfied
*/
#define timed_wait_for(timeinc, condition) \
do { \
int completed = 0; \
do { \
unsigned long j; \
int done = 0; \
\
completed = (condition); \
for (j = jiffies, done = 0; !done; ) { \
schedule_timeout(timeinc); \
if (time_is_before_eq_jiffies(j + timeinc)) \
done = 1; \
} \
} while (!(completed)); \
} while (0)


/*
* Waits for specified event when a thread that triggers event
* can't signal with timeout (use whenever we may hang)
Expand Down

0 comments on commit fa39baa

Please sign in to comment.