atmel_spi labels GPIOs better
Subsystems (2)
PATCH 1/3 atmel_spi labels GPIOs better
Make the atmel_spi driver label GPIOs according to the device for which they're acting as a chipselect. This way the debugfs dump of gpio state is more informative.
Signed-off-by David Brownell <[email protected]>
drivers/spi/atmel_spi.c +1 -1
@@ -497,7 +497,7 @@ static int atmel_spi_setup(struct spi_device *spi)/* chipselect must have been muxed as GPIO (e.g. in board setup) */ npcs_pin = (unsigned int )spi->controller_data;if (!spi->controller_state) { - ret =gpio_request (npcs_pin,"spi_npcs" ); + ret =gpio_request (npcs_pin, spi->dev.bus_id);if (ret)return ret; spi->controller_state = (void *)npcs_pin;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/