regmap: sdw-mbq: Reorder regmap_mbq_context struct for better packing
Subsystems (2)
PATCH 1/1 regmap: sdw-mbq: Reorder regmap_mbq_context struct for better packing
Reduce the packing by reordering the regmap_mbq_context structure.
Signed-off-by Charles Keepax <[email protected]>
--- drivers/base/regmap/regmap-sdw-mbq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/base/regmap/regmap-sdw-mbq.c +2 -1
@@ -16,10 +16,11 @@struct regmap_mbq_context {struct device *dev; +bool (*readable_reg)(struct device *dev,unsigned int reg); +struct regmap_sdw_mbq_cfg cfg;int val_size; -bool (*readable_reg)(struct device *dev,unsigned int reg); };static int regmap_sdw_mbq_size (struct regmap_mbq_context *ctx,unsigned int reg)
Signature · 1 line
2.47.3
Mark Brown
maintainerQuoted 1 line · Charles Keepax
Reduce the packing by reordering the
regmap_mbq_contextstructure.
Surely increase/improve the packing? Usually I'd expect a patch like this to quote some data showing the improvement (eg, pahole output or structure size).