1SPI_NEW_DEVICE(9)       Serial Peripheral Interface (S       SPI_NEW_DEVICE(9)
2
3
4

NAME

6       spi_new_device - instantiate one new SPI device
7

SYNOPSIS

9       struct spi_device * spi_new_device(struct spi_master * master,
10                                          struct spi_board_info * chip);
11

ARGUMENTS

13       master
14           Controller to which device is connected
15
16       chip
17           Describes the SPI device
18

CONTEXT

20       can sleep
21

DESCRIPTION

23       On typical mainboards, this is purely internal; and it's not needed
24       after board init creates the hard-wired devices. Some development
25       platforms may not be able to use spi_register_board_info though, and
26       this is exported so that for example a USB or parport based adapter
27       driver could add devices (which it would learn about out-of-band).
28
29       Returns the new device, or NULL.
30
32Kernel Hackers Manual 3.10         June 2019                 SPI_NEW_DEVICE(9)
Impressum