OSDN Git Service

watchdog: max63xx: dynamically allocate device
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 17 Jun 2015 22:58:58 +0000 (18:58 -0400)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 29 Jun 2015 09:50:53 +0000 (11:50 +0200)
commitb9be9660ba2d23259e4a430a44167ef441dc5fe6
tree091c9c710d6cb9a5e596e227849fd26e789cb893
parentdb11cba205b6710a71ef52a0f24e0ef059f29f1c
watchdog: max63xx: dynamically allocate device

This patch removes the static watchdog device for a new max63xx_wdt data
structure, and constifies the max63xx_timeout data.

The new structure contains pointers to pin access routines, which
abstracts mmap-specific code. This will ease future accesses like GPIO.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/max63xx_wdt.c