]> git.baikalelectronics.ru Git - uboot.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)
commit6b83344ddfe5392f8e5e3fcc53b9f81f2052c98b
treee4ddd9047b0afea65ffc4422a56974efa2cfd389
parenta28ddcf2a4e09fb91c926fa5832c3e7b6046c481
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