Skip to content

Commit

Permalink
pinctrl: single: remove get rid of __maybe_unused
Browse files Browse the repository at this point in the history
These are always used in pcs_probe().

While I was here, I also changed 'unsigned' in the same line to
'unsigned int' to address the checkpatch warnings:

  WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Masahiro Yamada <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
masahir0y authored and linusw committed Sep 11, 2023
1 parent 0bb80ec commit af68c2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/pinctrl/pinctrl-single.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,32 +239,32 @@ static struct lock_class_key pcs_request_class;
* does not help in this case.
*/

static unsigned __maybe_unused pcs_readb(void __iomem *reg)
static unsigned int pcs_readb(void __iomem *reg)
{
return readb(reg);
}

static unsigned __maybe_unused pcs_readw(void __iomem *reg)
static unsigned int pcs_readw(void __iomem *reg)
{
return readw(reg);
}

static unsigned __maybe_unused pcs_readl(void __iomem *reg)
static unsigned int pcs_readl(void __iomem *reg)
{
return readl(reg);
}

static void __maybe_unused pcs_writeb(unsigned val, void __iomem *reg)
static void pcs_writeb(unsigned int val, void __iomem *reg)
{
writeb(val, reg);
}

static void __maybe_unused pcs_writew(unsigned val, void __iomem *reg)
static void pcs_writew(unsigned int val, void __iomem *reg)
{
writew(val, reg);
}

static void __maybe_unused pcs_writel(unsigned val, void __iomem *reg)
static void pcs_writel(unsigned int val, void __iomem *reg)
{
writel(val, reg);
}
Expand Down

0 comments on commit af68c2a

Please sign in to comment.