summaryrefslogtreecommitdiff
path: root/include/linux/iio/dac/mcp4725.h
blob: e9801c8d49c00be2cc84e0585f1f249b5ee1fc6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * MCP4725 DAC driver
 *
 * Copyright (C) 2012 Peter Meerwald <pmeerw@pmeerw.net>
 */

#ifndef IIO_DAC_MCP4725_H_
#define IIO_DAC_MCP4725_H_

/**
 * struct mcp4725_platform_data - MCP4725/6 DAC specific data.
 * @use_vref: Whether an external reference voltage on Vref pin should be used.
 *            Additional vref-supply must be specified when used.
 * @vref_buffered: Controls buffering of the external reference voltage.
 *
 * Vref related settings are available only on MCP4756. See
 * Documentation/devicetree/bindings/iio/dac/mcp4725.txt for more information.
 */
struct mcp4725_platform_data {
	bool use_vref;
	bool vref_buffered;
};

#endif /* IIO_DAC_MCP4725_H_ */