From: Geert Uytterhoeven Date: Thu, 20 Feb 2014 14:43:04 +0000 (+0100) Subject: spi: sh-msiof: Use the core cs_gpio field, and make it optional X-Git-Tag: v3.15-rc1~147^2~2^5~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d19534a8d539bb2e598e56e017a423f205e909e;p=pandora-kernel.git spi: sh-msiof: Use the core cs_gpio field, and make it optional In current implementation, CS is controlled by GPIO, which is passed through spi->controller_data. However, the MSIOF HW module has a function to output CS by itself, which is already enabled and actual switch will be done by pinmux. Store the GPIO number in the core cs_gpio field, and ignore it if it is an invalid (negative) GPIO number. Loosely based on a patch from Takashi Yoshii . Signed-off-by: Geert Uytterhoeven Signed-off-by: Mark Brown --- Reading git-diff-tree failed