diff options
| author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2012-08-30 21:42:57 -0400 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2012-09-24 00:08:33 -0400 |
| commit | 6c1fe725fd76f4328e22c146d3a36513963a01ea (patch) | |
| tree | 23c2fabf8c2e38beac375353dde793138366a37c /include/linux/platform_data | |
| parent | 37f9648b2745fc3830f3715a601f7f94296de838 (diff) | |
hwmon: add Maxim MAX197 support
The MAX197 is an A/D converter, made by Maxim. This driver currently
supports the MAX197, and MAX199. They are both 8-Channel, Multi-Range,
5V, 12-Bit DAS with 8+4 Bus Interface and Fault Protection.
The available ranges for the MAX197 are {0,-5V} to 5V, and {0,-10V} to
10V, while they are {0,-2V} to 2V, and {0,-4V} to 4V on the MAX199.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/max197.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/max197.h b/include/linux/platform_data/max197.h new file mode 100644 index 000000000000..e2a41dd7690c --- /dev/null +++ b/include/linux/platform_data/max197.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * Maxim MAX197 A/D Converter Driver | ||
| 3 | * | ||
| 4 | * Copyright (c) 2012 Savoir-faire Linux Inc. | ||
| 5 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | * For further information, see the Documentation/hwmon/max197 file. | ||
| 12 | */ | ||
| 13 | |||
| 14 | /** | ||
| 15 | * struct max197_platform_data - MAX197 connectivity info | ||
| 16 | * @convert: Function used to start a conversion with control byte ctrl. | ||
| 17 | * It must return the raw data, or a negative error code. | ||
| 18 | */ | ||
| 19 | struct max197_platform_data { | ||
| 20 | int (*convert)(u8 ctrl); | ||
| 21 | }; | ||
