1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Platform Data for ADS1015 12-bit 4-input ADC
4 * (C) Copyright 2010
5 * Dirk Eibach, Guntermann & Drunck GmbH <eibach@gdsys.de>
6 */
7
8 #ifndef LINUX_ADS1015_H
9 #define LINUX_ADS1015_H
10
11 #define ADS1015_CHANNELS 8
12
13 struct ads1015_channel_data {
14 bool enabled;
15 unsigned int pga;
16 unsigned int data_rate;
17 };
18
19 struct ads1015_platform_data {
20 struct ads1015_channel_data channel_data[ADS1015_CHANNELS];
21 };
22
23 #endif /* LINUX_ADS1015_H */