2019-06-04 08:11:33 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
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>
2012-08-31 01:42:57 +00:00
|
|
|
/*
|
|
|
|
* Maxim MAX197 A/D Converter Driver
|
|
|
|
*
|
|
|
|
* Copyright (c) 2012 Savoir-faire Linux Inc.
|
|
|
|
* Vivien Didelot <vivien.didelot@savoirfairelinux.com>
|
|
|
|
*
|
2019-04-17 09:46:29 +00:00
|
|
|
* For further information, see the Documentation/hwmon/max197.rst file.
|
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>
2012-08-31 01:42:57 +00:00
|
|
|
*/
|
|
|
|
|
2014-01-10 21:44:45 +00:00
|
|
|
#ifndef _PDATA_MAX197_H
|
|
|
|
#define _PDATA_MAX197_H
|
|
|
|
|
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>
2012-08-31 01:42:57 +00:00
|
|
|
/**
|
|
|
|
* struct max197_platform_data - MAX197 connectivity info
|
|
|
|
* @convert: Function used to start a conversion with control byte ctrl.
|
|
|
|
* It must return the raw data, or a negative error code.
|
|
|
|
*/
|
|
|
|
struct max197_platform_data {
|
|
|
|
int (*convert)(u8 ctrl);
|
|
|
|
};
|
2014-01-10 21:44:45 +00:00
|
|
|
|
|
|
|
#endif /* _PDATA_MAX197_H */
|