mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] driver: left shift 1U instead of 1 in bitmask for consistency
@ 2018-12-07  6:34 Ahmad Fatoum
  2018-12-07  6:34 ` [PATCH 2/4] of: partition: use NULL instead of never-read argument Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2018-12-07  6:34 UTC (permalink / raw)
  To: barebox

The first two masks use 1U already, so follow suit.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 include/driver.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/driver.h b/include/driver.h
index 1b61f2066099..d509031f4980 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);
-- 
2.19.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-05-24  6:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-07  6:34 [PATCH 1/4] driver: left shift 1U instead of 1 in bitmask for consistency Ahmad Fatoum
2018-12-07  6:34 ` [PATCH 2/4] of: partition: use NULL instead of never-read argument Ahmad Fatoum
2018-12-07  6:34 ` [PATCH 3/4] of: partitions: make macro name more generic Ahmad Fatoum
2018-12-07  6:34 ` [PATCH 4/4] of: partition: add no-fixup device tree property Ahmad Fatoum
2018-12-07  7:43   ` Sascha Hauer
2018-12-07  8:38     ` Ahmad Fatoum
2018-12-10  8:39       ` Sascha Hauer
2018-12-14 15:31         ` Ahmad Fatoum
2019-05-23 15:43           ` Ahmad Fatoum
2019-05-24  6:31             ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox