* [PATCH] iio: trigger: Add a blank line after declarations
@ 2014-12-16 9:16 Roberta Dobrescu
2014-12-16 11:25 ` Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: Roberta Dobrescu @ 2014-12-16 9:16 UTC (permalink / raw)
To: jic23, linux-iio
Cc: octavian.purdila, daniel.baluta, lars, Michael.Hennerich,
knaack.h, pmeerw, Roberta Dobrescu
This patch fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
---
drivers/iio/trigger/iio-trig-sysfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c
index 254c7e9..3dfab2b 100644
--- a/drivers/iio/trigger/iio-trig-sysfs.c
+++ b/drivers/iio/trigger/iio-trig-sysfs.c
@@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
struct iio_sysfs_trig *t;
int ret;
bool foundit = false;
+
mutex_lock(&iio_sysfs_trig_list_mut);
list_for_each_entry(t, &iio_sysfs_trig_list, l)
if (id == t->id) {
@@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id)
{
bool foundit = false;
struct iio_sysfs_trig *t;
+
mutex_lock(&iio_sysfs_trig_list_mut);
list_for_each_entry(t, &iio_sysfs_trig_list, l)
if (id == t->id) {
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: trigger: Add a blank line after declarations
2014-12-16 9:16 [PATCH] iio: trigger: Add a blank line after declarations Roberta Dobrescu
@ 2014-12-16 11:25 ` Daniel Baluta
2014-12-26 12:16 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2014-12-16 11:25 UTC (permalink / raw)
To: Roberta Dobrescu
Cc: Jonathan Cameron, linux-iio, octavian.purdila, Daniel Baluta,
Lars-Peter Clausen, Michael.Hennerich, Hartmut Knaack,
Peter Meerwald
On Tue, Dec 16, 2014 at 11:16 AM, Roberta Dobrescu
<roberta.dobrescu@gmail.com> wrote:
> This patch fixes the following checkpatch.pl warning:
> WARNING: Missing a blank line after declarations
>
> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
> ---
> drivers/iio/trigger/iio-trig-sysfs.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c
> index 254c7e9..3dfab2b 100644
> --- a/drivers/iio/trigger/iio-trig-sysfs.c
> +++ b/drivers/iio/trigger/iio-trig-sysfs.c
> @@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
> struct iio_sysfs_trig *t;
> int ret;
> bool foundit = false;
> +
> mutex_lock(&iio_sysfs_trig_list_mut);
> list_for_each_entry(t, &iio_sysfs_trig_list, l)
> if (id == t->id) {
> @@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id)
> {
> bool foundit = false;
> struct iio_sysfs_trig *t;
> +
> mutex_lock(&iio_sysfs_trig_list_mut);
> list_for_each_entry(t, &iio_sysfs_trig_list, l)
> if (id == t->id) {
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iio: trigger: Add a blank line after declarations
2014-12-16 11:25 ` Daniel Baluta
@ 2014-12-26 12:16 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2014-12-26 12:16 UTC (permalink / raw)
To: Daniel Baluta, Roberta Dobrescu
Cc: linux-iio, octavian.purdila, Lars-Peter Clausen,
Michael.Hennerich, Hartmut Knaack, Peter Meerwald
On 16/12/14 11:25, Daniel Baluta wrote:
> On Tue, Dec 16, 2014 at 11:16 AM, Roberta Dobrescu
> <roberta.dobrescu@gmail.com> wrote:
>> This patch fixes the following checkpatch.pl warning:
>> WARNING: Missing a blank line after declarations
>>
>> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
>
> Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Applied to the togreg branch of iio.git - initially pushed out
as testing for the autobuilders to play with it.
Jonathan
>
>> ---
>> drivers/iio/trigger/iio-trig-sysfs.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c
>> index 254c7e9..3dfab2b 100644
>> --- a/drivers/iio/trigger/iio-trig-sysfs.c
>> +++ b/drivers/iio/trigger/iio-trig-sysfs.c
>> @@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
>> struct iio_sysfs_trig *t;
>> int ret;
>> bool foundit = false;
>> +
>> mutex_lock(&iio_sysfs_trig_list_mut);
>> list_for_each_entry(t, &iio_sysfs_trig_list, l)
>> if (id == t->id) {
>> @@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id)
>> {
>> bool foundit = false;
>> struct iio_sysfs_trig *t;
>> +
>> mutex_lock(&iio_sysfs_trig_list_mut);
>> list_for_each_entry(t, &iio_sysfs_trig_list, l)
>> if (id == t->id) {
>> --
>> 1.9.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-26 12:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-16 9:16 [PATCH] iio: trigger: Add a blank line after declarations Roberta Dobrescu
2014-12-16 11:25 ` Daniel Baluta
2014-12-26 12:16 ` Jonathan Cameron
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.