[PATCH 5/5] regmap: Merge redundant handling in regmap_bulk_write

2018-02-22 Thread Charles Keepax
The handling for the first two cases in regmap_bulk_write is essentially identical. The first case is just a better implementation of the second, supporting 8 byte registers and doing the locking manually to avoid bouncing the lock for each register. Drop some redundant code by removing the second

[PATCH 5/5] regmap: Merge redundant handling in regmap_bulk_write

2018-02-22 Thread Charles Keepax
The handling for the first two cases in regmap_bulk_write is essentially identical. The first case is just a better implementation of the second, supporting 8 byte registers and doing the locking manually to avoid bouncing the lock for each register. Drop some redundant code by removing the second