2014-02-11 16:26:57

by Richard Genoud

[permalink] [raw]
Subject: [PATCH] trivial: gpiolib: typo in gpiochip_is_requested comment

Signed-off-by: Richard Genoud <[email protected]>
---
drivers/gpio/gpiolib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 80da9f1940c9..a0b96695c519 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1646,7 +1646,7 @@ void gpio_free_array(const struct gpio *array, size_t num)
EXPORT_SYMBOL_GPL(gpio_free_array);

/**
- * gpiochip_is_requested - return string iff signal was requested
+ * gpiochip_is_requested - return string if signal was requested
* @chip: controller managing the signal
* @offset: of signal within controller's 0..(ngpio - 1) range
*
--
1.8.5


2014-02-20 13:49:19

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] trivial: gpiolib: typo in gpiochip_is_requested comment

On Tue, 11 Feb 2014, Richard Genoud wrote:

> Signed-off-by: Richard Genoud <[email protected]>
> ---
> drivers/gpio/gpiolib.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
> index 80da9f1940c9..a0b96695c519 100644
> --- a/drivers/gpio/gpiolib.c
> +++ b/drivers/gpio/gpiolib.c
> @@ -1646,7 +1646,7 @@ void gpio_free_array(const struct gpio *array, size_t num)
> EXPORT_SYMBOL_GPL(gpio_free_array);
>
> /**
> - * gpiochip_is_requested - return string iff signal was requested
> + * gpiochip_is_requested - return string if signal was requested

Why do you believe this is correct, please?

--
Jiri Kosina
SUSE Labs

2014-02-20 14:12:36

by Richard Genoud

[permalink] [raw]
Subject: Re: [PATCH] trivial: gpiolib: typo in gpiochip_is_requested comment

2014-02-20 14:48 GMT+01:00 Jiri Kosina <[email protected]>:
> On Tue, 11 Feb 2014, Richard Genoud wrote:
>
>> Signed-off-by: Richard Genoud <[email protected]>
>> ---
>> drivers/gpio/gpiolib.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
>> index 80da9f1940c9..a0b96695c519 100644
>> --- a/drivers/gpio/gpiolib.c
>> +++ b/drivers/gpio/gpiolib.c
>> @@ -1646,7 +1646,7 @@ void gpio_free_array(const struct gpio *array, size_t num)
>> EXPORT_SYMBOL_GPL(gpio_free_array);
>>
>> /**
>> - * gpiochip_is_requested - return string iff signal was requested
>> + * gpiochip_is_requested - return string if signal was requested
>
> Why do you believe this is correct, please?

damned ! I thought that iff was a typo... I didn't know that it meant
"if and only if"
sorry... please drop this.

Richard.