From ed47f732435b446b2ae0a3f50b87b511684fa029 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 10 Apr 2024 19:35:26 -0400 Subject: kernel: create_dev() -> device_create() Signed-off-by: Ian Moffett --- sys/include/sys/device.h | 2 +- sys/kern/kern_device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/sys/device.h b/sys/include/sys/device.h index 43b3db7..7b2f297 100644 --- a/sys/include/sys/device.h +++ b/sys/include/sys/device.h @@ -46,6 +46,6 @@ struct device { struct device *device_fetch(dev_t major, dev_t minor); dev_t device_alloc_major(void); -dev_t create_dev(struct device *dev, dev_t major, dev_t minor); +dev_t device_create(struct device *dev, dev_t major, dev_t minor); #endif diff --git a/sys/kern/kern_device.c b/sys/kern/kern_device.c index cb9a6a1..cbba965 100644 --- a/sys/kern/kern_device.c +++ b/sys/kern/kern_device.c @@ -59,7 +59,7 @@ device_fetch(dev_t major, dev_t minor) } dev_t -create_dev(struct device *dev, dev_t major, dev_t minor) +device_create(struct device *dev, dev_t major, dev_t minor) { if (dev == NULL || minor == 0) { return -EINVAL; -- cgit v1.2.3