Skip to content

Commit c37f411

Browse files
committed
spi: bcm2835aux: use 'unsigned int' instead of 'unsigned'
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071848 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122415 commit b09bff2 Author: Jason Wang <wangborong@cdjrlc.com> Date: Sat, 31 Jul 2021 21:33:42 +0800 Prefer 'unsigned int' to bare use of 'unsigned'. Signed-off-by: Jason Wang <wangborong@cdjrlc.com> Link: https://lore.kernel.org/r/20210731133342.432575-1-wangborong@cdjrlc.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Mark Salter <msalter@redhat.com>
1 parent 2be6f45 commit c37f411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi-bcm2835aux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ static void bcm2835aux_debugfs_remove(struct bcm2835aux_spi *bs)
143143
}
144144
#endif /* CONFIG_DEBUG_FS */
145145

146-
static inline u32 bcm2835aux_rd(struct bcm2835aux_spi *bs, unsigned reg)
146+
static inline u32 bcm2835aux_rd(struct bcm2835aux_spi *bs, unsigned int reg)
147147
{
148148
return readl(bs->regs + reg);
149149
}
150150

151-
static inline void bcm2835aux_wr(struct bcm2835aux_spi *bs, unsigned reg,
151+
static inline void bcm2835aux_wr(struct bcm2835aux_spi *bs, unsigned int reg,
152152
u32 val)
153153
{
154154
writel(val, bs->regs + reg);

0 commit comments

Comments
 (0)