]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
regmap: provide helpers for simple bit operations
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 28 May 2020 15:45:02 +0000 (17:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 18:35:18 +0000 (11:35 -0700)
commitbfad978116c2aa3b693701059923de4561196f9b
tree0a1a6d62f5f065988dd1549d88cd12589df8e854
parentbda6752f3de99e9d765638b89aacfb11c07cee06
regmap: provide helpers for simple bit operations

In many instances regmap_update_bits() is used for simple bit setting
and clearing. In these cases the last argument is redundant and we can
hide it with a static inline function.

This adds three new helpers for simple bit operations: set_bits,
clear_bits and test_bits (the last one defined as a regular function).

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/base/regmap/regmap.c
include/linux/regmap.h