Commit d63aa09f authored by Jinchao Wang's avatar Jinchao Wang Committed by Mark Brown

regmap: Prefer unsigned int to bare use of unsigned

Fix checkpatch warnings:
    WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: default avatarJinchao Wang <wjc@cdjrlc.com>
Link: https://lore.kernel.org/r/20210628171907.63646-1-wjc@cdjrlc.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1852f5ed
...@@ -368,7 +368,7 @@ static ssize_t regmap_reg_ranges_read_file(struct file *file, ...@@ -368,7 +368,7 @@ static ssize_t regmap_reg_ranges_read_file(struct file *file,
char *buf; char *buf;
char *entry; char *entry;
int ret; int ret;
unsigned entry_len; unsigned int entry_len;
if (*ppos < 0 || !count) if (*ppos < 0 || !count)
return -EINVAL; return -EINVAL;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
struct regmap_mmio_context { struct regmap_mmio_context {
void __iomem *regs; void __iomem *regs;
unsigned val_bytes; unsigned int val_bytes;
bool relaxed_mmio; bool relaxed_mmio;
bool attached_clk; bool attached_clk;
......
...@@ -1126,10 +1126,10 @@ struct regmap *__regmap_init(struct device *dev, ...@@ -1126,10 +1126,10 @@ struct regmap *__regmap_init(struct device *dev,
/* Make sure, that this register range has no selector /* Make sure, that this register range has no selector
or data window within its boundary */ or data window within its boundary */
for (j = 0; j < config->num_ranges; j++) { for (j = 0; j < config->num_ranges; j++) {
unsigned sel_reg = config->ranges[j].selector_reg; unsigned int sel_reg = config->ranges[j].selector_reg;
unsigned win_min = config->ranges[j].window_start; unsigned int win_min = config->ranges[j].window_start;
unsigned win_max = win_min + unsigned int win_max = win_min +
config->ranges[j].window_len - 1; config->ranges[j].window_len - 1;
/* Allow data window inside its own virtual range */ /* Allow data window inside its own virtual range */
if (j == i) if (j == i)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment