Star64_linux/include/linux/gpio
Alexandre Courbot 8e53b0f190 gpio: remove const modifier from gpiod_get_direction()
Although gpiod_get_direction() can be considered side-effect free for
consumers, its internals involve setting or clearing bits in the
affected GPIO descriptor, for which we need to force-cast the const
descriptor variable to non-const. This could lead to incorrect behavior
if the compiler decides to optimize here, so remove this const
attribute. The intent is to make gpiod_get_direction() private anyway,
so it does not really matter.

Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2014-11-28 14:43:36 +01:00
..
consumer.h gpio: remove const modifier from gpiod_get_direction() 2014-11-28 14:43:36 +01:00
driver.h gpiolib: allow simultaneous setting of multiple GPIO outputs 2014-11-27 15:01:18 +01:00
machine.h gpio: add missing includes in machine.h 2014-08-07 11:54:51 +02:00