Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/wait.h>
#include <linux/i2c.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/sections.h>
#include <asm/pmac_low_i2c.h>
#include "windfarm.h"
Go to the source code of this file.
Data Structures | |
struct | wf_lm87_sensor |
Macros | |
#define | VERSION "1.0" |
#define | DBG(args...) do { } while(0) |
#define | wf_to_lm87(c) container_of(c, struct wf_lm87_sensor, sens) |
#define | LM87_INT_TEMP 0x27 |
Functions | |
MODULE_DEVICE_TABLE (i2c, wf_lm87_id) | |
module_init (wf_lm87_sensor_init) | |
module_exit (wf_lm87_sensor_exit) | |
MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>") | |
MODULE_DESCRIPTION ("LM87 sensor objects for PowerMacs thermal control") | |
MODULE_LICENSE ("GPL") | |
#define DBG | ( | args... | ) | do { } while(0) |
Definition at line 33 of file windfarm_lm87_sensor.c.
#define LM87_INT_TEMP 0x27 |
#define VERSION "1.0" |
Definition at line 26 of file windfarm_lm87_sensor.c.
#define wf_to_lm87 | ( | c | ) | container_of(c, struct wf_lm87_sensor, sens) |
Definition at line 40 of file windfarm_lm87_sensor.c.
MODULE_AUTHOR | ( | "Benjamin Herrenschmidt <[email protected]>" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
wf_lm87_id | |||
) |
module_exit | ( | wf_lm87_sensor_exit | ) |
module_init | ( | wf_lm87_sensor_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |