diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-10 19:35:26 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-10 19:35:26 -0400 |
commit | ed47f732435b446b2ae0a3f50b87b511684fa029 (patch) | |
tree | e6e0477b1de6423030143debd718fe342bc3efd5 | |
parent | 434b79c0be7fdd72dd965615104b00f52b1dc4c3 (diff) |
kernel: create_dev() -> device_create()
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/include/sys/device.h | 2 | ||||
-rw-r--r-- | 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; |