Skip to content

Commit d63aa09

Browse files
Jinchao Wangbroonie
authored andcommitted
regmap: Prefer unsigned int to bare use of unsigned
Fix checkpatch warnings: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Jinchao Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 1852f5e commit d63aa09

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

drivers/base/regmap/regmap-debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ static ssize_t regmap_reg_ranges_read_file(struct file *file,
368368
char *buf;
369369
char *entry;
370370
int ret;
371-
unsigned entry_len;
371+
unsigned int entry_len;
372372

373373
if (*ppos < 0 || !count)
374374
return -EINVAL;

drivers/base/regmap/regmap-mmio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
struct regmap_mmio_context {
1717
void __iomem *regs;
18-
unsigned val_bytes;
18+
unsigned int val_bytes;
1919
bool relaxed_mmio;
2020

2121
bool attached_clk;

drivers/base/regmap/regmap.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,10 +1126,10 @@ struct regmap *__regmap_init(struct device *dev,
11261126
/* Make sure, that this register range has no selector
11271127
or data window within its boundary */
11281128
for (j = 0; j < config->num_ranges; j++) {
1129-
unsigned sel_reg = config->ranges[j].selector_reg;
1130-
unsigned win_min = config->ranges[j].window_start;
1131-
unsigned win_max = win_min +
1132-
config->ranges[j].window_len - 1;
1129+
unsigned int sel_reg = config->ranges[j].selector_reg;
1130+
unsigned int win_min = config->ranges[j].window_start;
1131+
unsigned int win_max = win_min +
1132+
config->ranges[j].window_len - 1;
11331133

11341134
/* Allow data window inside its own virtual range */
11351135
if (j == i)

0 commit comments

Comments
 (0)