menf21bmc_wdt.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | menf21bmc_wdt.c (6551881c86c791237a3bebf11eb3bd70b60ea782) |
---|---|
1/* 2 * MEN 14F021P00 Board Management Controller (BMC) Watchdog Driver. 3 * 4 * Copyright (C) 2014 MEN Mikro Elektronik Nuernberg GmbH 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 116 unchanged lines hidden (view full) --- 125 sizeof(struct menf21bmc_wdt), GFP_KERNEL); 126 if (!drv_data) 127 return -ENOMEM; 128 129 drv_data->wdt.ops = &menf21bmc_wdt_ops; 130 drv_data->wdt.info = &menf21bmc_wdt_info; 131 drv_data->wdt.min_timeout = BMC_WD_TIMEOUT_MIN; 132 drv_data->wdt.max_timeout = BMC_WD_TIMEOUT_MAX; | 1/* 2 * MEN 14F021P00 Board Management Controller (BMC) Watchdog Driver. 3 * 4 * Copyright (C) 2014 MEN Mikro Elektronik Nuernberg GmbH 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of the GNU General Public License as published by the 8 * Free Software Foundation; either version 2 of the License, or (at your --- 116 unchanged lines hidden (view full) --- 125 sizeof(struct menf21bmc_wdt), GFP_KERNEL); 126 if (!drv_data) 127 return -ENOMEM; 128 129 drv_data->wdt.ops = &menf21bmc_wdt_ops; 130 drv_data->wdt.info = &menf21bmc_wdt_info; 131 drv_data->wdt.min_timeout = BMC_WD_TIMEOUT_MIN; 132 drv_data->wdt.max_timeout = BMC_WD_TIMEOUT_MAX; |
133 drv_data->wdt.parent = &pdev->dev; |
|
133 drv_data->i2c_client = i2c_client; 134 135 /* 136 * Get the current wdt timeout value from the BMC because 137 * the BMC will save the value set before if the system restarts. 138 */ 139 bmc_timeout = i2c_smbus_read_word_data(drv_data->i2c_client, 140 BMC_CMD_WD_TIME); --- 62 unchanged lines hidden --- | 134 drv_data->i2c_client = i2c_client; 135 136 /* 137 * Get the current wdt timeout value from the BMC because 138 * the BMC will save the value set before if the system restarts. 139 */ 140 bmc_timeout = i2c_smbus_read_word_data(drv_data->i2c_client, 141 BMC_CMD_WD_TIME); --- 62 unchanged lines hidden --- |