Vivien Didelot | 6c1fe72 | 2012-08-30 21:42:57 -0400 | [diff] [blame] | 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 | |
Vivien Didelot | 4cb6409 | 2014-01-10 16:44:45 -0500 | [diff] [blame] | 14 | #ifndef _PDATA_MAX197_H |
| 15 | #define _PDATA_MAX197_H |
| 16 | |
Vivien Didelot | 6c1fe72 | 2012-08-30 21:42:57 -0400 | [diff] [blame] | 17 | /** |
| 18 | * struct max197_platform_data - MAX197 connectivity info |
| 19 | * @convert: Function used to start a conversion with control byte ctrl. |
| 20 | * It must return the raw data, or a negative error code. |
| 21 | */ |
| 22 | struct max197_platform_data { |
| 23 | int (*convert)(u8 ctrl); |
| 24 | }; |
Vivien Didelot | 4cb6409 | 2014-01-10 16:44:45 -0500 | [diff] [blame] | 25 | |
| 26 | #endif /* _PDATA_MAX197_H */ |