From 4ab4cf3fc08fe9c7da51b9b0082b22c8ca50611a Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Fri, 7 Dec 2018 07:34:31 +0100 Subject: driver: left shift 1U instead of 1 in bitmask for consistency The first two masks use 1U already, so follow suit. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- include/driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/driver.h') diff --git a/include/driver.h b/include/driver.h index 3479e18194..26ec413bd6 100644 --- a/include/driver.h +++ b/include/driver.h @@ -489,8 +489,8 @@ int cdev_erase(struct cdev *cdev, loff_t count, loff_t offset); #define DEVFS_PARTITION_FIXED (1U << 0) #define DEVFS_PARTITION_READONLY (1U << 1) -#define DEVFS_IS_CHARACTER_DEV (1 << 3) -#define DEVFS_PARTITION_FROM_TABLE (1 << 4) +#define DEVFS_IS_CHARACTER_DEV (1U << 3) +#define DEVFS_PARTITION_FROM_TABLE (1U << 4) struct cdev *devfs_add_partition(const char *devname, loff_t offset, loff_t size, unsigned int flags, const char *name); -- cgit v1.2.3