Mika Westerberg e97f9b5277 gpio/gpio-ich: fix ichx_gpio_check_available() return what callers expect
ichx_gpio_check_available() returns either 0 or -ENXIO depending on whether
the given GPIO is available or not. However, callers of this function treat
the return value as boolean:

	...
	if (!ichx_gpio_check_available(gpio, nr))
		return -ENXIO;

which erroneusly fails when the GPIO is available and not vice versa.

Fix this by making the function return boolean as expected by the callers.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2013-03-02 13:20:21 +00:00
..
2012-07-05 14:49:13 +02:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:59 -08:00
2011-06-06 10:10:11 -06:00
2012-11-28 11:39:59 -08:00
2013-02-05 13:33:30 +00:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:33 -08:00
2013-02-26 09:35:29 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2013-02-21 14:58:40 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:33 -08:00
2012-11-28 11:39:33 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-12-11 13:13:55 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2012-11-28 11:39:59 -08:00
2013-02-20 11:04:46 -08:00
2013-02-26 09:35:29 -08:00
2013-02-26 09:35:29 -08:00