mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
regmap: Fix printing of size_t variable
val_bytes is of 'size_t', so it should be printed as '%zu'. Fixes the following build warning on x86: drivers/base/regmap/regmap.c:872:4: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat] Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
8a2ceac661
commit
1a61cfe344
1 changed files with 1 additions and 1 deletions
|
|
@ -858,7 +858,7 @@ static int _regmap_raw_write(struct regmap *map, unsigned int reg,
|
|||
|
||||
/* If the write goes beyond the end of the window split it */
|
||||
while (val_num > win_residue) {
|
||||
dev_dbg(map->dev, "Writing window %d/%d\n",
|
||||
dev_dbg(map->dev, "Writing window %d/%zu\n",
|
||||
win_residue, val_len / map->format.val_bytes);
|
||||
ret = _regmap_raw_write(map, reg, val, win_residue *
|
||||
map->format.val_bytes);
|
||||
|
|
|
|||
Loading…
Reference in a new issue