hwmon.c (2fc2991175bf77395e6b15fe6b2304d3bf72da40) | hwmon.c (8c65b4a60450590e79a28e9717ceffa9e4debb3f) |
---|---|
1/* 2 hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring 3 4 This file defines the sysfs class "hwmon", for use by sensors drivers. 5 6 Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com> 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; version 2 of the License. 11*/ 12 13#include <linux/module.h> 14#include <linux/device.h> 15#include <linux/err.h> 16#include <linux/kdev_t.h> 17#include <linux/idr.h> 18#include <linux/hwmon.h> | 1/* 2 hwmon.c - part of lm_sensors, Linux kernel modules for hardware monitoring 3 4 This file defines the sysfs class "hwmon", for use by sensors drivers. 5 6 Copyright (C) 2005 Mark M. Hoffman <mhoffman@lightlink.com> 7 8 This program is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; version 2 of the License. 11*/ 12 13#include <linux/module.h> 14#include <linux/device.h> 15#include <linux/err.h> 16#include <linux/kdev_t.h> 17#include <linux/idr.h> 18#include <linux/hwmon.h> |
19#include <linux/gfp.h> |
|
19 20#define HWMON_ID_PREFIX "hwmon" 21#define HWMON_ID_FORMAT HWMON_ID_PREFIX "%d" 22 23static struct class *hwmon_class; 24 25static DEFINE_IDR(hwmon_idr); 26 --- 72 unchanged lines hidden --- | 20 21#define HWMON_ID_PREFIX "hwmon" 22#define HWMON_ID_FORMAT HWMON_ID_PREFIX "%d" 23 24static struct class *hwmon_class; 25 26static DEFINE_IDR(hwmon_idr); 27 --- 72 unchanged lines hidden --- |