ltc2991.c (234c07400eb4f5d475e4055b11b5ed69f91d3732) | ltc2991.c (99bf7c2eccff82760fa23ce967cc67c8c219c6a6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2023 Analog Devices, Inc. 4 * Author: Antoniu Miclaus <antoniu.miclaus@analog.com> 5 */ 6 7#include <linux/bitops.h> 8#include <linux/err.h> --- 211 unchanged lines hidden (view full) --- 220 if (st->r_sense_uohm[channel]) 221 return 0444; 222 break; 223 } 224 break; 225 case hwmon_temp: 226 switch (attr) { 227 case hwmon_temp_input: | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2023 Analog Devices, Inc. 4 * Author: Antoniu Miclaus <antoniu.miclaus@analog.com> 5 */ 6 7#include <linux/bitops.h> 8#include <linux/err.h> --- 211 unchanged lines hidden (view full) --- 220 if (st->r_sense_uohm[channel]) 221 return 0444; 222 break; 223 } 224 break; 225 case hwmon_temp: 226 switch (attr) { 227 case hwmon_temp_input: |
228 if (st->temp_en[channel] || 229 channel == LTC2991_T_INT_CH_NR) | 228 if (channel == LTC2991_T_INT_CH_NR || 229 st->temp_en[channel]) |
230 return 0444; 231 break; 232 } 233 break; 234 default: 235 break; 236 } 237 --- 193 unchanged lines hidden --- | 230 return 0444; 231 break; 232 } 233 break; 234 default: 235 break; 236 } 237 --- 193 unchanged lines hidden --- |