linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Denis CIOCCA <denis.ciocca@st.com>
Cc: hennerich@blackfin.uclinux.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio:trigger: fix sysfs name on list mutex
Date: Sat, 28 Sep 2013 11:52:05 +0100	[thread overview]
Message-ID: <5246B4D5.4000103@kernel.org> (raw)
In-Reply-To: <1379933351-27498-1-git-send-email-denis.ciocca@st.com>

On 09/23/13 11:49, Denis CIOCCA wrote:
> Signed-off-by: Denis Ciocca <denis.ciocca@st.com>
Applied to the togreg branch of iio.git

Thanks for cleaning this up.
> ---
>  drivers/iio/trigger/iio-trig-sysfs.c |   14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c
> index effcd0a..15e3b85 100644
> --- a/drivers/iio/trigger/iio-trig-sysfs.c
> +++ b/drivers/iio/trigger/iio-trig-sysfs.c
> @@ -23,7 +23,7 @@ struct iio_sysfs_trig {
>  };
>  
>  static LIST_HEAD(iio_sysfs_trig_list);
> -static DEFINE_MUTEX(iio_syfs_trig_list_mut);
> +static DEFINE_MUTEX(iio_sysfs_trig_list_mut);
>  
>  static int iio_sysfs_trigger_probe(int id);
>  static ssize_t iio_sysfs_trig_add(struct device *dev,
> @@ -135,7 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
>  	struct iio_sysfs_trig *t;
>  	int ret;
>  	bool foundit = false;
> -	mutex_lock(&iio_syfs_trig_list_mut);
> +	mutex_lock(&iio_sysfs_trig_list_mut);
>  	list_for_each_entry(t, &iio_sysfs_trig_list, l)
>  		if (id == t->id) {
>  			foundit = true;
> @@ -169,7 +169,7 @@ static int iio_sysfs_trigger_probe(int id)
>  		goto out2;
>  	list_add(&t->l, &iio_sysfs_trig_list);
>  	__module_get(THIS_MODULE);
> -	mutex_unlock(&iio_syfs_trig_list_mut);
> +	mutex_unlock(&iio_sysfs_trig_list_mut);
>  	return 0;
>  
>  out2:
> @@ -177,7 +177,7 @@ out2:
>  free_t:
>  	kfree(t);
>  out1:
> -	mutex_unlock(&iio_syfs_trig_list_mut);
> +	mutex_unlock(&iio_sysfs_trig_list_mut);
>  	return ret;
>  }
>  
> @@ -185,14 +185,14 @@ static int iio_sysfs_trigger_remove(int id)
>  {
>  	bool foundit = false;
>  	struct iio_sysfs_trig *t;
> -	mutex_lock(&iio_syfs_trig_list_mut);
> +	mutex_lock(&iio_sysfs_trig_list_mut);
>  	list_for_each_entry(t, &iio_sysfs_trig_list, l)
>  		if (id == t->id) {
>  			foundit = true;
>  			break;
>  		}
>  	if (!foundit) {
> -		mutex_unlock(&iio_syfs_trig_list_mut);
> +		mutex_unlock(&iio_sysfs_trig_list_mut);
>  		return -EINVAL;
>  	}
>  
> @@ -202,7 +202,7 @@ static int iio_sysfs_trigger_remove(int id)
>  	list_del(&t->l);
>  	kfree(t);
>  	module_put(THIS_MODULE);
> -	mutex_unlock(&iio_syfs_trig_list_mut);
> +	mutex_unlock(&iio_sysfs_trig_list_mut);
>  	return 0;
>  }
>  
> 

      reply	other threads:[~2013-09-28  9:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23 10:49 [PATCH] iio:trigger: fix sysfs name on list mutex Denis CIOCCA
2013-09-28 10:52 ` Jonathan Cameron [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=5246B4D5.4000103@kernel.org \
    --to=jic23@kernel.org \
    --cc=denis.ciocca@st.com \
    --cc=hennerich@blackfin.uclinux.org \
    --cc=linux-iio@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).