watchdog: wm831x: Use GPIO descriptor

The WM831x watchdog driver passes a global GPIO number from
platform data into this driver, this is discouraged so pass
a GPIO descriptor instead.

More thorough approaches are possible passing descriptors
associated with the device through machine descriptor tables,
but no boardfiles in the kernel currently use this driver
so it is hard to test.

Cc: Richard Fitzgerald <>
Cc: Charles Keepax <>
Cc: Mark Brown <>
Signed-off-by: Linus Walleij <>
2 files changed