commit | bfad978116c2aa3b693701059923de4561196f9b | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Thu May 28 17:45:02 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Mon Jun 01 11:35:18 2020 -0700 |
tree | 0a1a6d62f5f065988dd1549d88cd12589df8e854 | |
parent | bda6752f3de99e9d765638b89aacfb11c07cee06 [diff] |
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>