Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70d383b7 authored by Jean-Christophe PINCE's avatar Jean-Christophe PINCE Committed by Mark Brown
Browse files

regmap: rbtree: improve 64bits memory alignment



Change regcache_rbtree_node strcuture fields order to align the pointers on
64bits architectures.

Signed-off-by: default avatarJean-Christophe PINCE <jean-christophe.pince@intel.com>
Signed-off-by: default avatarDavid Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c9eaa447
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -23,16 +23,16 @@ static int regcache_rbtree_write(struct regmap *map, unsigned int reg,
static int regcache_rbtree_exit(struct regmap *map);

struct regcache_rbtree_node {
	/* the actual rbtree node holding this block */
	struct rb_node node;
	/* base register handled by this block */
	unsigned int base_reg;
	/* block of adjacent registers */
	void *block;
	/* Which registers are present */
	long *cache_present;
	/* base register handled by this block */
	unsigned int base_reg;
	/* number of registers available in the block */
	unsigned int blklen;
	/* the actual rbtree node holding this block */
	struct rb_node node;
} __attribute__ ((packed));

struct regcache_rbtree_ctx {