Skip to contentSkip to conversation

regmap: missing case statement

PATCH New Dan Carpenter 1 participant 1 message Dec 12, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 regmap: missing case statement

This new code is unreachable. Presumably there was supposed to be a case statement there similar to the earlier code.

Fixes afcc00b91f18 ('regmap: add 64-bit mode support')
drivers/base/regmap/regmap.c +1 -0
index 2d4cc70..026c44a 100644
@@ -844,6 +844,7 @@ struct regmap *__regmap_init(struct device *dev,
 		}
 		break;
 #ifdef CONFIG_64BIT
+	case 64:
 		switch (val_endian) {
 		case REGMAP_ENDIAN_BIG:
 			map->format.format_val = regmap_format_64_be;