Re: [PATCH 1/3] hid: intel-ish-hid: ipc: remove unused macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2016-11-11 at 09:40 +0800, Even Xu wrote:
> 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@xxxxxxxxx>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>

> ---
>  drivers/hid/intel-ish-hid/ipc/utils.h | 21 ---------------------
>  1 file changed, 21 deletions(-)
> 
> diff --git a/drivers/hid/intel-ish-hid/ipc/utils.h
> b/drivers/hid/intel-ish-hid/ipc/utils.h
> index 5a82123..dc39dfe 100644
> --- a/drivers/hid/intel-ish-hid/ipc/utils.h
> +++ b/drivers/hid/intel-ish-hid/ipc/utils.h
> @@ -19,27 +19,6 @@
>  #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)
>   */��.n��������+%������w��{.n�����{��)��^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux