da9062_wdt.c (01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba) da9062_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782)
1/*
2 * da9062_wdt.c - WDT device driver for DA9062
3 * Copyright (C) 2015 Dialog Semiconductor Ltd.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

--- 196 unchanged lines hidden (view full) ---

205 wdt->hw = chip;
206
207 wdt->wdtdev.info = &da9062_watchdog_info;
208 wdt->wdtdev.ops = &da9062_watchdog_ops;
209 wdt->wdtdev.min_timeout = DA9062_WDT_MIN_TIMEOUT;
210 wdt->wdtdev.max_timeout = DA9062_WDT_MAX_TIMEOUT;
211 wdt->wdtdev.timeout = DA9062_WDG_DEFAULT_TIMEOUT;
212 wdt->wdtdev.status = WATCHDOG_NOWAYOUT_INIT_STATUS;
1/*
2 * da9062_wdt.c - WDT device driver for DA9062
3 * Copyright (C) 2015 Dialog Semiconductor Ltd.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.

--- 196 unchanged lines hidden (view full) ---

205 wdt->hw = chip;
206
207 wdt->wdtdev.info = &da9062_watchdog_info;
208 wdt->wdtdev.ops = &da9062_watchdog_ops;
209 wdt->wdtdev.min_timeout = DA9062_WDT_MIN_TIMEOUT;
210 wdt->wdtdev.max_timeout = DA9062_WDT_MAX_TIMEOUT;
211 wdt->wdtdev.timeout = DA9062_WDG_DEFAULT_TIMEOUT;
212 wdt->wdtdev.status = WATCHDOG_NOWAYOUT_INIT_STATUS;
213 wdt->wdtdev.parent = &pdev->dev;
213
214 watchdog_set_drvdata(&wdt->wdtdev, wdt);
215 dev_set_drvdata(&pdev->dev, wdt);
216
217 ret = watchdog_register_device(&wdt->wdtdev);
218 if (ret < 0) {
219 dev_err(wdt->hw->dev,
220 "watchdog registration failed (%d)\n", ret);

--- 33 unchanged lines hidden ---
214
215 watchdog_set_drvdata(&wdt->wdtdev, wdt);
216 dev_set_drvdata(&pdev->dev, wdt);
217
218 ret = watchdog_register_device(&wdt->wdtdev);
219 if (ret < 0) {
220 dev_err(wdt->hw->dev,
221 "watchdog registration failed (%d)\n", ret);

--- 33 unchanged lines hidden ---