From: Stephen Warren Date: Thu, 1 Dec 2011 20:49:19 +0000 (-0700) Subject: ASoC: WM8903: Disallow all invalid gpio_cfg pdata values X-Git-Tag: v3.3-rc1~14^2~231 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f526f0a86dbb22fd2fc5a873f55c9e2341a79c0;p=pandora-kernel.git ASoC: WM8903: Disallow all invalid gpio_cfg pdata values The GPIO registers are 15 bits wide. Hence values, higher than 0x7fff are not legal GPIO register values. Modify the pdata.gpio_cfg handling code to reject all illegal values, not just WM8903_GPIO_NO_CONFIG (0x8000). This will allow the later use of 0xffffffff as an invalid value in future device tree bindings, meaning "don't touch this GPIO's configuration". Signed-off-by: Stephen Warren Signed-off-by: Mark Brown --- Reading git-diff-tree failed