| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * acpi_ipmi.c - ACPI IPMI opregion |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2010, 2013 Intel Corporation |
|---|
| 5 | 6 | * Author: Zhao Yakui <yakui.zhao@intel.com> |
|---|
| 6 | 7 | * Lv Zheng <lv.zheng@intel.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or (at |
|---|
| 13 | | - * your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 16 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 18 | | - * General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|---|
| 21 | 8 | */ |
|---|
| 22 | 9 | |
|---|
| 23 | 10 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 46 | 33 | spinlock_t tx_msg_lock; |
|---|
| 47 | 34 | acpi_handle handle; |
|---|
| 48 | 35 | struct device *dev; |
|---|
| 49 | | - ipmi_user_t user_interface; |
|---|
| 36 | + struct ipmi_user *user_interface; |
|---|
| 50 | 37 | int ipmi_ifnum; /* IPMI interface number */ |
|---|
| 51 | 38 | long curr_msgid; |
|---|
| 52 | 39 | bool dead; |
|---|
| .. | .. |
|---|
| 125 | 112 | { |
|---|
| 126 | 113 | struct acpi_ipmi_device *ipmi_device; |
|---|
| 127 | 114 | int err; |
|---|
| 128 | | - ipmi_user_t user; |
|---|
| 115 | + struct ipmi_user *user; |
|---|
| 129 | 116 | |
|---|
| 130 | 117 | ipmi_device = kzalloc(sizeof(*ipmi_device), GFP_KERNEL); |
|---|
| 131 | 118 | if (!ipmi_device) |
|---|