Skip to content
Unverified Commit cf39ed2e authored by Matt Ranostay's avatar Matt Ranostay Committed by Mark Brown
Browse files

regmap: add WARN_ONCE when invalid mask is provided to regmap_field_init()



In regmap_field_init() when a invalid mask is provided it still
initializes with any warnings.

An example of this is when the LSB is greater than MSB a mask of zero
is produced.

WARN_ONCE() is not ideal for this but requires less changes to core regmap
code.

Cc: Mark Brown <broonie@kernel.org>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: default avatarMatt Ranostay <mranostay@ti.com>
Link: https://lore.kernel.org/r/20220708013125.313892-1-mranostay@ti.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 773d09b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment