Home
last modified time | relevance | path

Searched refs:raw_class (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/char/
Draw.c34 static struct class *raw_class; variable
170 device_destroy(raw_class, MKDEV(RAW_MAJOR, number)); in bind_set()
178 device_destroy(raw_class, raw); in bind_set()
179 device_create(raw_class, NULL, raw, NULL, in bind_set()
340 raw_class = class_create(THIS_MODULE, "raw"); in raw_init()
341 if (IS_ERR(raw_class)) { in raw_init()
344 ret = PTR_ERR(raw_class); in raw_init()
347 raw_class->devnode = raw_devnode; in raw_init()
348 device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); in raw_init()
361 device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); in raw_exit()
[all …]
/Linux-v4.19/drivers/staging/greybus/
Draw.c36 static struct class *raw_class; variable
199 raw->device = device_create(raw_class, &connection->bundle->dev, in gb_raw_probe()
233 device_destroy(raw_class, raw->dev); in gb_raw_disconnect()
344 raw_class = class_create(THIS_MODULE, "gb_raw"); in raw_init()
345 if (IS_ERR(raw_class)) { in raw_init()
346 retval = PTR_ERR(raw_class); in raw_init()
365 class_destroy(raw_class); in raw_init()
375 class_destroy(raw_class); in raw_exit()