/* Change the direction of a GPIO pin to output and set the level on this pin.  */
static int kinetis_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int level)
/* Change the direction of a GPIO pin to output and set the level on this pin.  */
static int kinetis_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int level)
{
	KINETIS_GPIO(KINETIS_GPIO_GETPORT(gpio))->pddr |=
		(1 << KINETIS_GPIO_GETPIN(gpio));
	gpio_set_value(gpio, level);
	return 0;
}