#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/sysfs.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/platform_device.h>
#include <linux/platform_data/max197.h>
Go to the source code of this file.
#define MAX197_BIP (1 << 3) /* Bipolarity */ |
#define MAX197_LIMIT 10000 /* 10V */ |
#define MAX197_NUM_CH 8 /* 8 Analog Input Channels */ |
#define MAX197_RNG (1 << 4) /* Full range */ |
#define MAX197_SENSOR_DEV_ATTR_IN |
( |
|
chan | ) |
|
Value:&sensor_dev_attr_in##
chan##_input.dev_attr.attr, \
&sensor_dev_attr_in##
chan##_max.dev_attr.attr, \
&sensor_dev_attr_in##
chan##_min.dev_attr.attr
Definition at line 229 of file max197.c.
#define MAX197_SENSOR_DEVICE_ATTR_CH |
( |
|
chan | ) |
|
Value:
max197_show_range, \
max197_store_range, \
max197_show_range, \
max197_store_range, \
Definition at line 217 of file max197.c.
#define MAX199_LIMIT 4000 /* 4V */ |
- Enumerator:
-
Definition at line 39 of file max197.c.
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
0 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
1 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
2 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
3 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
4 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
5 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
6 |
| ) |
|
MAX197_SENSOR_DEVICE_ATTR_CH |
( |
7 |
| ) |
|
MODULE_DESCRIPTION |
( |
"Maxim MAX197 A/D Converter driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
platform |
, |
|
|
max197_device_ids |
|
|
) |
| |
module_platform_driver |
( |
max197_driver |
| ) |
|