From: Alexandre Courbot Date: Tue, 25 Nov 2014 08:16:31 +0000 (+0900) Subject: gpio: remove const modifier from gpiod_get_direction() X-Git-Tag: omap-for-v3.19/fixes-rc1~89^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e53b0f190af2954309bbad76a78177ead15d824;p=pandora-kernel.git 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 Signed-off-by: Alexandre Courbot Acked-by: Uwe Kleine-König Signed-off-by: Linus Walleij --- Reading git-diff-tree failed