Home
last modified time | relevance | path

Searched refs:char_dev (Results 1 – 4 of 4) sorted by relevance

/drivers/platform/x86/
Dwmi.c69 struct miscdevice char_dev; member
856 struct wmi_block *wblock = container_of(filp->private_data, struct wmi_block, char_dev); in wmi_char_open()
988 wblock->char_dev.minor = MISC_DYNAMIC_MINOR; in wmi_dev_probe()
989 wblock->char_dev.name = buf; in wmi_dev_probe()
990 wblock->char_dev.fops = &wmi_fops; in wmi_dev_probe()
991 wblock->char_dev.mode = 0444; in wmi_dev_probe()
992 ret = misc_register(&wblock->char_dev); in wmi_dev_probe()
1021 misc_deregister(&wblock->char_dev); in wmi_dev_remove()
1022 kfree(wblock->char_dev.name); in wmi_dev_remove()
/drivers/rtc/
Ddev.c26 struct rtc_device, char_dev); in rtc_dev_open()
557 cdev_init(&rtc->char_dev, &rtc_dev_fops); in rtc_dev_prepare()
558 rtc->char_dev.owner = rtc->owner; in rtc_dev_prepare()
Dclass.c348 cdev_device_del(&rtc->char_dev, &rtc->dev); in devm_rtc_unregister_device()
415 err = cdev_device_add(&rtc->char_dev, &rtc->dev); in __devm_rtc_register_device()
/drivers/scsi/cxlflash/
Dmain.c3584 struct device *char_dev; in init_chrdev() local
3605 char_dev = device_create(cxlflash_class, NULL, devno, in init_chrdev()
3607 if (IS_ERR(char_dev)) { in init_chrdev()
3608 rc = PTR_ERR(char_dev); in init_chrdev()
3614 cfg->chardev = char_dev; in init_chrdev()