diff options
author | André Draszik <andre.draszik@linaro.org> | 2025-04-09 21:37:52 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2025-06-23 23:58:40 +0200 |
commit | b1248da008362323f75e8b84874586e9ea4c0b31 (patch) | |
tree | 199d156cfe0eb188fd56e2dccde29ad8a7e518f5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f5adb1fa04d08731a13db48afafd1a5f4384d3c9 (diff) |
rtc: s5m: replace open-coded read/modify/write registers with regmap helpers
Instead of the open-coded read/modify/write sequence, we can simply use
the regmap helpers regmap_set_bits() and regmap_update_bits()
respectively.
This makes the code easier to read, and avoids extra work in case the
underlying bus supports updating bits via
struct regmap_bus::reg_update_bits() directly (which is the case for
S2MPG10 on gs101 where this driver communicates via ACPM).
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-31-d66d5f39b6bf@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions