blob: 0fa4186c617191934b9873a069605acbf6c2a106 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Vivien Didelot46d78462012-10-03 16:54:07 -04002/*
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 Chehab7ebd8b662019-04-17 06:46:29 -03008 * For further information, see the Documentation/hwmon/ads7828.rst file.
Vivien Didelot46d78462012-10-03 16:54:07 -04009 */
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 */
20struct ads7828_platform_data {
21 bool diff_input;
22 bool ext_vref;
23 unsigned int vref_mv;
24};
25
26#endif /* _PDATA_ADS7828_H */