Lines Matching refs:proxy
485 struct spi_device *proxy; in spi_new_device() local
495 proxy = spi_alloc_device(master); in spi_new_device()
496 if (!proxy) in spi_new_device()
499 WARN_ON(strlen(chip->modalias) >= sizeof(proxy->modalias)); in spi_new_device()
501 proxy->chip_select = chip->chip_select; in spi_new_device()
502 proxy->max_speed_hz = chip->max_speed_hz; in spi_new_device()
503 proxy->mode = chip->mode; in spi_new_device()
504 proxy->irq = chip->irq; in spi_new_device()
505 strlcpy(proxy->modalias, chip->modalias, sizeof(proxy->modalias)); in spi_new_device()
506 proxy->dev.platform_data = (void *) chip->platform_data; in spi_new_device()
507 proxy->controller_data = chip->controller_data; in spi_new_device()
508 proxy->controller_state = NULL; in spi_new_device()
510 status = spi_add_device(proxy); in spi_new_device()
512 spi_dev_put(proxy); in spi_new_device()
516 return proxy; in spi_new_device()