altera_spi
struct platform_device *altera_spi;
nn->altera_spi = platform_device_register_full(&pdevinfo);
return PTR_ERR_OR_ZERO(nn->altera_spi);
platform_device_unregister(nn->altera_spi);
static void altera_spi_rx_word(struct altera_spi *hw)
struct altera_spi *hw = spi_controller_get_devdata(host);
struct altera_spi *hw = spi_controller_get_devdata(host);
struct altera_spi *hw = spi_controller_get_devdata(host);
static int altr_spi_writel(struct altera_spi *hw, unsigned int reg,
static int altr_spi_readl(struct altera_spi *hw, unsigned int reg,
static inline struct altera_spi *altera_spi_to_hw(struct spi_device *sdev)
struct altera_spi *hw = altera_spi_to_hw(spi);
static void altera_spi_tx_word(struct altera_spi *hw)
struct altera_spi *hw;
host = devm_spi_alloc_host(dev, sizeof(struct altera_spi));
struct altera_spi *hw;
host = devm_spi_alloc_host(&pdev->dev, sizeof(struct altera_spi));