All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>
To: "jikos@kernel.org" <jikos@kernel.org>, "Xu, Even" <even.xu@intel.com>
Cc: "linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: Re: [PATCH 1/3] hid: intel-ish-hid: ipc: remove unused macro
Date: Tue, 15 Nov 2016 18:09:38 +0000	[thread overview]
Message-ID: <1479233376.6544.45.camel@intel.com> (raw)
In-Reply-To: <1478828413-31687-1-git-send-email-even.xu@intel.com>

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@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>

> ---
>  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)
>   */

      reply	other threads:[~2016-11-15 18:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11  1:40 [PATCH 1/3] hid: intel-ish-hid: ipc: remove unused macro Even Xu
2016-11-15 18:09 ` Pandruvada, Srinivas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1479233376.6544.45.camel@intel.com \
    --to=srinivas.pandruvada@intel.com \
    --cc=even.xu@intel.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.