spi: spi-gpio: store chipselect information in private structure
authorDaniel Mack <zonque@gmail.com>
Wed, 5 Sep 2012 09:04:35 +0000 (11:04 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Sep 2012 23:41:05 +0000 (07:41 +0800)
commit161c2dd3ca143f0dca50d72292bf651eabe2aa23
tree812954905794b2eececd3f06f091757f6d4236eb
parent9a2a52452575a4edf5b91e341d7d87fe2be3474c
spi: spi-gpio: store chipselect information in private structure

The spi-gpio driver currently assumes the chipselect gpio number is
stored in ->controller_data of the device's static board information.

In devicetree environments, this information is unavailable and has to
be derived from the DT node.

This patch moves the gpio storage to the controller's private data so
the DT bindings can easily build upon the driver.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-gpio.c