Rechercher une page de manuel
spi_new_device
Langue: en
Version: June 2009 (debian - 07/07/09)
Section: 9 (Appels noyau Linux)
NAME
spi_new_device - instantiate one new SPI deviceSYNOPSIS
- struct spi_device * spi_new_device(struct spi_master * master, struct spi_board_info * chip);
ARGUMENTS
master
- Controller to which device is connected
chip
- Describes the SPI device
CONTEXT
can sleep
DESCRIPTION
On typical mainboards, this is purely internal; and it's not needed after board init creates the hard-wired devices. Some development platforms may not be able to use spi_register_board_info though, and this is exported so that for example a USB or parport based adapter driver could add devices (which it would learn about out-of-band).
Returns the new device, or NULL.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre