diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2018-02-15 17:52:18 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-16 12:03:30 +0000 |
commit | 186ba2eec275a5e4ee09d4b6a77c619e46fab9fd (patch) | |
tree | 7131a29eed8fca67a833a37ea0bdcc54ccad6ddc /drivers/pnp/system.c | |
parent | 1b079ca2c2e9a4652051bc4b62a5ef83d59d86bb (diff) |
regmap: Use _regmap_read in regmap_bulk_read
Bulk reads may potentially read a lot of registers and regmap_read will
take and release the regmap lock for each register. Avoid bouncing
the lock so frequently by holding the lock locally and calling
_regmap_read instead. This also has the nice side-effect that all the
reads will be done atomically so no other threads can sneak a write in
during the regmap_bulk_read.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/pnp/system.c')
0 files changed, 0 insertions, 0 deletions