Lines Matching refs:driver_override
51 kfree(spi->driver_override); in spidev_release()
76 const char *driver_override, *old; in driver_override_store() local
82 driver_override = kstrndup(buf, len, GFP_KERNEL); in driver_override_store()
83 if (!driver_override) in driver_override_store()
87 old = spi->driver_override; in driver_override_store()
89 spi->driver_override = driver_override; in driver_override_store()
92 spi->driver_override = NULL; in driver_override_store()
93 kfree(driver_override); in driver_override_store()
108 len = snprintf(buf, PAGE_SIZE, "%s\n", spi->driver_override ? : ""); in driver_override_show()
112 static DEVICE_ATTR_RW(driver_override);
343 if (spi->driver_override) in spi_match_device()
344 return strcmp(spi->driver_override, drv->name) == 0; in spi_match_device()