OSDN Git Service

pinctrl: mcp23s08: Rename and change function that wraps regmap_update_bits()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 24 Mar 2023 16:49:56 +0000 (17:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Mar 2023 14:30:19 +0000 (16:30 +0200)
commitd490be6dd8aa3194d8b5d509846275b4b2b2ac38
tree8f07fd00cf0d9d30778064c4c60c57a458bab529
parent2a6ac65c941dc1c6c00d0f765eec898bcb96fc63
pinctrl: mcp23s08: Rename and change function that wraps regmap_update_bits()

The semantic of mcp_set_mask() was surprising to me when I first read
that driver. So it was unexpected that in the call

mcp_set_mask(mcp, MCP_OLAT, mask, value);

value was a bool. Make the function a thinner wrapper around
regmap_update_bits() and rename it to also have a similar name.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230324164957.485924-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c