Lines Matching refs:sdrv
327 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_probe() local
335 err = sdrv->probe(sdev); in spmi_drv_probe()
350 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_remove() local
353 if (sdrv->remove) in spmi_drv_remove()
354 sdrv->remove(to_spmi_device(dev)); in spmi_drv_remove()
364 const struct spmi_driver *sdrv = to_spmi_driver(dev->driver); in spmi_drv_shutdown() local
366 if (sdrv && sdrv->shutdown) in spmi_drv_shutdown()
367 sdrv->shutdown(to_spmi_device(dev)); in spmi_drv_shutdown()
575 int __spmi_driver_register(struct spmi_driver *sdrv, struct module *owner) in __spmi_driver_register() argument
577 sdrv->driver.bus = &spmi_bus_type; in __spmi_driver_register()
578 sdrv->driver.owner = owner; in __spmi_driver_register()
579 return driver_register(&sdrv->driver); in __spmi_driver_register()