| Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame] | 2 | /* |
| 3 | * TI ADS7828 A/D Converter platform data definition |
| 4 | * |
| 5 | * Copyright (c) 2012 Savoir-faire Linux Inc. |
| 6 | * Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
| 7 | * |
| Mauro Carvalho Chehab | 7ebd8b66 | 2019-04-17 06:46:29 -0300 | [diff] [blame] | 8 | * For further information, see the Documentation/hwmon/ads7828.rst file. |
| Vivien Didelot | 46d7846 | 2012-10-03 16:54:07 -0400 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _PDATA_ADS7828_H |
| 12 | #define _PDATA_ADS7828_H |
| 13 | |
| 14 | /** |
| 15 | * struct ads7828_platform_data - optional ADS7828 connectivity info |
| 16 | * @diff_input: Differential input mode. |
| 17 | * @ext_vref: Use an external voltage reference. |
| 18 | * @vref_mv: Voltage reference value, if external. |
| 19 | */ |
| 20 | struct ads7828_platform_data { |
| 21 | bool diff_input; |
| 22 | bool ext_vref; |
| 23 | unsigned int vref_mv; |
| 24 | }; |
| 25 | |
| 26 | #endif /* _PDATA_ADS7828_H */ |