Skip to content

Commit fde0b6c

Browse files
colin-foster-in-advantagekuba-moo
authored andcommitted
mfd: ocelot: prepend resource size macros to be 32-bit
The *_RES_SIZE macros are initally <= 0x100. Future resource sizes will be upwards of 0x200000 in size. To keep things clean, fully align the RES_SIZE macros to 32-bit to do nothing more than make the code more consistent. Signed-off-by: Colin Foster <colin.foster@in-advantage.com> Acked-for-MFD-by: Lee Jones <lee@kernel.org> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com> # regression Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent de879a0 commit fde0b6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/mfd/ocelot-core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434

3535
#define VSC7512_MIIM0_RES_START 0x7107009c
3636
#define VSC7512_MIIM1_RES_START 0x710700c0
37-
#define VSC7512_MIIM_RES_SIZE 0x024
37+
#define VSC7512_MIIM_RES_SIZE 0x00000024
3838

3939
#define VSC7512_PHY_RES_START 0x710700f0
40-
#define VSC7512_PHY_RES_SIZE 0x004
40+
#define VSC7512_PHY_RES_SIZE 0x00000004
4141

4242
#define VSC7512_GPIO_RES_START 0x71070034
43-
#define VSC7512_GPIO_RES_SIZE 0x06c
43+
#define VSC7512_GPIO_RES_SIZE 0x0000006c
4444

4545
#define VSC7512_SIO_CTRL_RES_START 0x710700f8
46-
#define VSC7512_SIO_CTRL_RES_SIZE 0x100
46+
#define VSC7512_SIO_CTRL_RES_SIZE 0x00000100
4747

4848
#define VSC7512_GCB_RST_SLEEP_US 100
4949
#define VSC7512_GCB_RST_TIMEOUT_US 100000

0 commit comments

Comments
 (0)