common.c (d7ba866759c63a65a66eb4f329d6f2e0e8c57a0c) | common.c (5679ed99065372bc62c57a895950914e1c0fb9e0) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// Copyright IBM Corp 2019 3 4#include <linux/device.h> | 1// SPDX-License-Identifier: GPL-2.0+ 2// Copyright IBM Corp 2019 3 4#include <linux/device.h> |
5#include <linux/export.h> |
|
5#include <linux/hwmon.h> 6#include <linux/hwmon-sysfs.h> 7#include <linux/jiffies.h> 8#include <linux/kernel.h> 9#include <linux/math64.h> | 6#include <linux/hwmon.h> 7#include <linux/hwmon-sysfs.h> 8#include <linux/jiffies.h> 9#include <linux/kernel.h> 10#include <linux/math64.h> |
11#include <linux/module.h> |
|
10#include <linux/mutex.h> 11#include <linux/sysfs.h> 12#include <asm/unaligned.h> 13 14#include "common.h" 15 16#define EXTN_FLAG_SENSOR_ID BIT(7) 17 --- 1076 unchanged lines hidden (view full) --- 1094 } 1095 1096 rc = occ_setup_sysfs(occ); 1097 if (rc) 1098 dev_err(occ->bus_dev, "failed to setup sysfs: %d\n", rc); 1099 1100 return rc; 1101} | 12#include <linux/mutex.h> 13#include <linux/sysfs.h> 14#include <asm/unaligned.h> 15 16#include "common.h" 17 18#define EXTN_FLAG_SENSOR_ID BIT(7) 19 --- 1076 unchanged lines hidden (view full) --- 1096 } 1097 1098 rc = occ_setup_sysfs(occ); 1099 if (rc) 1100 dev_err(occ->bus_dev, "failed to setup sysfs: %d\n", rc); 1101 1102 return rc; 1103} |
1104EXPORT_SYMBOL_GPL(occ_setup); 1105 1106MODULE_AUTHOR("Eddie James <eajames@linux.ibm.com>"); 1107MODULE_DESCRIPTION("Common OCC hwmon code"); 1108MODULE_LICENSE("GPL"); |
|