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

Commit 46a99d03 authored by Samuel Ortiz's avatar Samuel Ortiz
Browse files
regmap: Helper macro for defining register ranges

A helper macro to make it a bit neater to define register ranges.
parents 501d609a 6112fe60
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -70,6 +70,8 @@ struct regmap_range {
	unsigned int range_max;
};

#define regmap_reg_range(low, high) { .range_min = low, .range_max = high, }

/*
 * A table of ranges including some yes ranges and some no ranges.
 * If a register belongs to a no_range, the corresponding check function