From: Jarkko Nikula Date: Thu, 14 Nov 2013 12:03:53 +0000 (+0200) Subject: spi: Use stable dev_name for ACPI enumerated SPI slaves X-Git-Tag: v3.13-rc1~28^2~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e13ac47bec20797fa9262cffcae9cf0e3aa1b9b2;p=pandora-kernel.git spi: Use stable dev_name for ACPI enumerated SPI slaves Current spi bus_num.chip_select "spix.y" based device naming scheme may not be stable enough to be used in name based matching, for instance within ALSA SoC subsystem. This can be problem in PC kind of platforms if there are changes in SPI bus configuration, amount of busses or probe order. This patch addresses the problem by using the ACPI device name with "spi-" prefix for ACPI enumerated SPI slave. For them device name "spix.y" becomes "spi-INTABCD:ij". Signed-off-by: Jarkko Nikula Acked-by: Mark Brown Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed