xref: /linux/include/linux/platform_data/ads7828.h (revision 95298d63c67673c654c08952672d016212b26054)
1 /* SPDX-License-Identifier: GPL-2.0-only */
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  *
8  * For further information, see the Documentation/hwmon/ads7828.rst file.
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 */
27