Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2173441d authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman
Browse files

ARM: shmobile: armadillo800eva: Use gpio_set_value() to set GPIO value



The GPIO is already configured as an output, there's no reason to use
gpio_direction_output() just to set the output value. Use
gpio_set_value() instead.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 0f69e708
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -708,9 +708,9 @@ static int mt9t111_power(struct device *dev, int mode)
		/* video1 (= CON1 camera) expect 24MHz */
		clk_set_rate(mclk, clk_round_rate(mclk, 24000000));
		clk_enable(mclk);
		gpio_direction_output(GPIO_PORT158, 1);
		gpio_set_value(GPIO_PORT158, 1);
	} else {
		gpio_direction_output(GPIO_PORT158, 0);
		gpio_set_value(GPIO_PORT158, 0);
		clk_disable(mclk);
	}