sbrmi.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | sbrmi.c (29423978b76912b43ebb9ac6433be0f9dd7bd8fa) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * sbrmi.c - hwmon driver for a SB-RMI mailbox 4 * compliant AMD SoC device. 5 * 6 * Copyright (C) 2020-2021 Advanced Micro Devices, Inc. 7 */ 8 --- 251 unchanged lines hidden (view full) --- 260 } 261 break; 262 default: 263 break; 264 } 265 return 0; 266} 267 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * sbrmi.c - hwmon driver for a SB-RMI mailbox 4 * compliant AMD SoC device. 5 * 6 * Copyright (C) 2020-2021 Advanced Micro Devices, Inc. 7 */ 8 --- 251 unchanged lines hidden (view full) --- 260 } 261 break; 262 default: 263 break; 264 } 265 return 0; 266} 267 |
268static const struct hwmon_channel_info *sbrmi_info[] = { | 268static const struct hwmon_channel_info * const sbrmi_info[] = { |
269 HWMON_CHANNEL_INFO(power, 270 HWMON_P_INPUT | HWMON_P_CAP | HWMON_P_CAP_MAX), 271 NULL 272}; 273 274static const struct hwmon_ops sbrmi_hwmon_ops = { 275 .is_visible = sbrmi_is_visible, 276 .read = sbrmi_read, --- 82 unchanged lines hidden --- | 269 HWMON_CHANNEL_INFO(power, 270 HWMON_P_INPUT | HWMON_P_CAP | HWMON_P_CAP_MAX), 271 NULL 272}; 273 274static const struct hwmon_ops sbrmi_hwmon_ops = { 275 .is_visible = sbrmi_is_visible, 276 .read = sbrmi_read, --- 82 unchanged lines hidden --- |