]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: regmap: Fix mask in regmap_update_bits()
authorSimon Glass <sjg@chromium.org>
Fri, 11 Oct 2019 22:16:49 +0000 (16:16 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 27 Oct 2019 16:56:41 +0000 (10:56 -0600)
commit5ca5ec1e3272f40a7ad26a15e3df3bb18e0b11d8
tree54e34ae436bfdfa1839639579a9acb2ebad5b0e9
parent619025b8d68b346442430b8a412852b63960bedb
dm: regmap: Fix mask in regmap_update_bits()

This function assumes that the 'val' parameter has no masked bits set.
This is not defined by the function prototype though. Fix the function to
mask the value and update the documentation.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
drivers/core/regmap.c
include/regmap.h