regmap: add helper for per-port regfield initialization
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 27 May 2020 23:41:03 +0000 (02:41 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2020 12:44:30 +0000 (13:44 +0100)
commit8baebfc2aca26e3fa67ab28343671b82be42b22c
treebe7a5a5b6b60eca31951e9d62369eddc665b6287
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
regmap: add helper for per-port regfield initialization

Similar to the standalone regfields, add an initializer for the users
who need to set .id_size and .id_offset in order to use the
regmap_fields_update_bits_base API.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20200527234113.2491988-2-olteanv@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h