pinctrl: pinctrl-single.c: Cleaning up wrong format string usage
%d in format string used, but the type is unsigned int This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Родитель
719e231bed
Коммит
bf4cef6c70
|
@ -780,7 +780,7 @@ static int pcs_add_pin(struct pcs_device *pcs, unsigned offset,
|
||||||
|
|
||||||
pin = &pcs->pins.pa[i];
|
pin = &pcs->pins.pa[i];
|
||||||
pn = &pcs->names[i];
|
pn = &pcs->names[i];
|
||||||
sprintf(pn->name, "%lx.%d",
|
sprintf(pn->name, "%lx.%u",
|
||||||
(unsigned long)pcs->res->start + offset, pin_pos);
|
(unsigned long)pcs->res->start + offset, pin_pos);
|
||||||
pin->name = pn->name;
|
pin->name = pn->name;
|
||||||
pin->number = i;
|
pin->number = i;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче