Lines Matching defs:pdata
39 struct altera_spi_platform_data *pdata = dev_get_platdata(&pdev->dev);
53 if (pdata) {
54 if (pdata->num_chipselect > ALTERA_SPI_MAX_CS) {
57 pdata->num_chipselect);
62 host->num_chipselect = pdata->num_chipselect;
63 host->mode_bits = pdata->mode_bits;
64 host->bits_per_word_mask = pdata->bits_per_word_mask;
125 if (pdata) {
126 for (i = 0; i < pdata->num_devices; i++) {
127 if (!spi_new_device(host, pdata->devices + i))
130 pdata->devices[i].modalias);