mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
regmap: split up regmap_config.use_single_rw
Split regmap_config.use_single_rw into use_single_read and use_single_write. This change enables drivers of devices which only support bulk operations in one direction to use the regmap_bulk_*() functions for both directions and have their bulk operation split into single operations only when necessary. Update all struct regmap_config instances where use_single_rw==true to instead set both use_single_read and use_single_write. No attempt was made to evaluate whether it is possible to set only one of use_single_read or use_single_write. Signed-off-by: David Frey <dpfrey@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9ad8eb0168
commit
1c96a2f67c
34 changed files with 91 additions and 50 deletions
|
@ -315,9 +315,12 @@ typedef void (*regmap_unlock)(void *);
|
|||
* masks are used.
|
||||
* @zero_flag_mask: If set, read_flag_mask and write_flag_mask are used even
|
||||
* if they are both empty.
|
||||
* @use_single_rw: If set, converts the bulk read and write operations into
|
||||
* a series of single read and write operations. This is useful
|
||||
* for device that does not support bulk read and write.
|
||||
* @use_single_read: If set, converts the bulk read operation into a series of
|
||||
* single read operations. This is useful for a device that
|
||||
* does not support bulk read.
|
||||
* @use_single_write: If set, converts the bulk write operation into a series of
|
||||
* single write operations. This is useful for a device that
|
||||
* does not support bulk write.
|
||||
* @can_multi_write: If set, the device supports the multi write mode of bulk
|
||||
* write operations, if clear multi write requests will be
|
||||
* split into individual write operations
|
||||
|
@ -380,7 +383,8 @@ struct regmap_config {
|
|||
unsigned long write_flag_mask;
|
||||
bool zero_flag_mask;
|
||||
|
||||
bool use_single_rw;
|
||||
bool use_single_read;
|
||||
bool use_single_write;
|
||||
bool can_multi_write;
|
||||
|
||||
enum regmap_endian reg_format_endian;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue