]> git.dujemihanovic.xyz Git - u-boot.git/commit
regmap: add regmap_update_bits() helper
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 27 Apr 2018 09:56:14 +0000 (11:56 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 8 May 2018 13:07:40 +0000 (09:07 -0400)
commit285cbcf97f2b1dcadedb6835b3e9662c7fba0fe2
treee4ddd9047b0afea65ffc4422a56974efa2cfd389
parentdbe2fcb87d7d2a64e5ed3661e19b79f7014e5165
regmap: add regmap_update_bits() helper

Add the regmap_update_bits() to simply the read/modify/write of registers
in a single command. The function is taken from Linux regmap
implementation.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/regmap.c
include/regmap.h