diff --git a/examples/chardev.c b/examples/chardev.c index 0737779..2d788e6 100644 --- a/examples/chardev.c +++ b/examples/chardev.c @@ -34,8 +34,8 @@ static ssize_t device_write(struct file *, const char __user *, size_t, static int major; /* major number assigned to our device driver */ enum { - CDEV_NOT_USED = 0, - CDEV_EXCLUSIVE_OPEN = 1, + CDEV_NOT_USED, + CDEV_EXCLUSIVE_OPEN, }; /* Is device open? Used to prevent multiple access to device */ diff --git a/examples/chardev2.c b/examples/chardev2.c index 1d2fc92..1cac869 100644 --- a/examples/chardev2.c +++ b/examples/chardev2.c @@ -22,8 +22,8 @@ #define BUF_LEN 80 enum { - CDEV_NOT_USED = 0, - CDEV_EXCLUSIVE_OPEN = 1, + CDEV_NOT_USED, + CDEV_EXCLUSIVE_OPEN, }; /* Is the device open right now? Used to prevent concurrent access into diff --git a/examples/static_key.c b/examples/static_key.c index b27d4a7..5f74f48 100644 --- a/examples/static_key.c +++ b/examples/static_key.c @@ -29,8 +29,8 @@ static ssize_t device_write(struct file *file, const char __user *buf, static int major; enum { - CDEV_NOT_USED = 0, - CDEV_EXCLUSIVE_OPEN = 1, + CDEV_NOT_USED, + CDEV_EXCLUSIVE_OPEN, }; static atomic_t already_open = ATOMIC_INIT(CDEV_NOT_USED);