OSDN Git Service

watchdog: sp5100_tco: Always use SP5100_IO_PM_{INDEX_REG,DATA_REG}
authorGuenter Roeck <linux@roeck-us.net>
Sun, 24 Dec 2017 21:04:06 +0000 (13:04 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 21 Jan 2018 11:56:34 +0000 (12:56 +0100)
commit2b750cffe1ed05c9001d9524b5815e1f50461a44
treeddb343ca3dacd51ee23eaf6453b58566d991d644
parent1ff688209e2ed23f699269b9733993e2ce123fd2
watchdog: sp5100_tco: Always use SP5100_IO_PM_{INDEX_REG,DATA_REG}

SP5100_IO_PM_INDEX_REG and SB800_IO_PM_INDEX_REG are used inconsistently
and define the same value. Just use SP5100_IO_PM_INDEX_REG throughout.
Do the same for SP5100_IO_PM_DATA_REG and SB800_IO_PM_DATA_REG.
Use helper functions to access the indexed registers.

Cc: Zoltán Böszörményi <zboszor@pr.hu>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sp5100_tco.c
drivers/watchdog/sp5100_tco.h