[U-Boot] [PATCH] gpio: omap_gpio: Remove check_gpio() function
Nikita Kiryanov
nikita at compulab.co.il
Thu Jun 20 07:19:33 CEST 2013
Hi Axel,
On 06/20/2013 04:03 AM, Axel Lin wrote:
> check_gpio() and gpio_is_valid() are both used to check if a gpio is valid or
> not. It looks pointless to have both function because we can just call
> gpio_is_valid() instead of check_gpio(). Thus remove check_gpio() function.
I don't see the benefit in this patch.
The functions clearly exist for different reasons: gpio_is_valid() is
part of the gpio api, while check_gpio() exists to attach an error
message to a failed validity check without causing code duplication all
over omap_gpio.c.
Essentially what you are doing is removing a helpful error message.
--
Regards,
Nikita.
More information about the U-Boot
mailing list