summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2018-12-07 07:34:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-24 08:30:30 +0200
commit4ab4cf3fc08fe9c7da51b9b0082b22c8ca50611a (patch)
tree06b0b6cac6372a89a3bfd95ab263de8650c5c461 /include/driver.h
parent9271182f3b32d41a83ca802a63580c0c4fef9b9e (diff)
downloadbarebox-4ab4cf3fc08fe9c7da51b9b0082b22c8ca50611a.tar.gz
barebox-4ab4cf3fc08fe9c7da51b9b0082b22c8ca50611a.tar.xz
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 <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h4
1 files changed, 2 insertions, 2 deletions
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);