Merge tag 'for-linus-20190524' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / include / linux / platform_data / ads1015.h
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 */