Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * TI ADS7828 A/D Converter platform data definition
0004  *
0005  * Copyright (c) 2012 Savoir-faire Linux Inc.
0006  *          Vivien Didelot <vivien.didelot@savoirfairelinux.com>
0007  *
0008  * For further information, see the Documentation/hwmon/ads7828.rst file.
0009  */
0010 
0011 #ifndef _PDATA_ADS7828_H
0012 #define _PDATA_ADS7828_H
0013 
0014 /**
0015  * struct ads7828_platform_data - optional ADS7828 connectivity info
0016  * @diff_input:     Differential input mode.
0017  * @ext_vref:       Use an external voltage reference.
0018  * @vref_mv:        Voltage reference value, if external.
0019  */
0020 struct ads7828_platform_data {
0021     bool diff_input;
0022     bool ext_vref;
0023     unsigned int vref_mv;
0024 };
0025 
0026 #endif /* _PDATA_ADS7828_H */