mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
dm: spi: Use device_bind_driver() instead of our own function
The SPI function does the same thing, so we may as well just use the new generic function. The 'cs' parameter was not actually used, so can be dropped. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
ff56bba2d6
commit
6b18656aff
3 changed files with 2 additions and 37 deletions
|
@ -543,20 +543,6 @@ int spi_chip_select(struct udevice *slave);
|
|||
*/
|
||||
int spi_find_chip_select(struct udevice *bus, int cs, struct udevice **devp);
|
||||
|
||||
/**
|
||||
* spi_bind_device() - bind a device to a bus's chip select
|
||||
*
|
||||
* This binds a new device to an given chip select (which must be unused).
|
||||
*
|
||||
* @bus: SPI bus to search
|
||||
* @cs: Chip select to attach to
|
||||
* @drv_name: Name of driver to attach to this chip select
|
||||
* @dev_name: Name of the new device thus created
|
||||
* @devp: Returns the newly bound device
|
||||
*/
|
||||
int spi_bind_device(struct udevice *bus, int cs, const char *drv_name,
|
||||
const char *dev_name, struct udevice **devp);
|
||||
|
||||
/**
|
||||
* spi_ofdata_to_platdata() - decode standard SPI platform data
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue