Searched refs:raw_class (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/char/ |
D | raw.c | 35 static struct class *raw_class; variable 171 device_destroy(raw_class, MKDEV(RAW_MAJOR, number)); in bind_set() 179 device_destroy(raw_class, raw); in bind_set() 180 device_create(raw_class, NULL, raw, NULL, in bind_set() 341 raw_class = class_create(THIS_MODULE, "raw"); in raw_init() 342 if (IS_ERR(raw_class)) { in raw_init() 345 ret = PTR_ERR(raw_class); in raw_init() 348 raw_class->devnode = raw_devnode; in raw_init() 349 device_create(raw_class, NULL, MKDEV(RAW_MAJOR, 0), NULL, "rawctl"); in raw_init() 362 device_destroy(raw_class, MKDEV(RAW_MAJOR, 0)); in raw_exit() [all …]
|
/Linux-v5.4/drivers/staging/greybus/ |
D | raw.c | 35 static struct class *raw_class; variable 198 raw->device = device_create(raw_class, &connection->bundle->dev, in gb_raw_probe() 232 device_destroy(raw_class, raw->dev); in gb_raw_disconnect() 343 raw_class = class_create(THIS_MODULE, "gb_raw"); in raw_init() 344 if (IS_ERR(raw_class)) { in raw_init() 345 retval = PTR_ERR(raw_class); in raw_init() 364 class_destroy(raw_class); in raw_init() 374 class_destroy(raw_class); in raw_exit()
|