1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * MCP4725 DAC driver 3 * MCP4725 DAC driver 4 * 4 * 5 * Copyright (C) 2012 Peter Meerwald <pmeerw@p 5 * Copyright (C) 2012 Peter Meerwald <pmeerw@pmeerw.net> 6 */ 6 */ 7 7 8 #ifndef IIO_DAC_MCP4725_H_ 8 #ifndef IIO_DAC_MCP4725_H_ 9 #define IIO_DAC_MCP4725_H_ 9 #define IIO_DAC_MCP4725_H_ 10 10 11 /** 11 /** 12 * struct mcp4725_platform_data - MCP4725/6 DA 12 * struct mcp4725_platform_data - MCP4725/6 DAC specific data. 13 * @use_vref: Whether an external reference vo 13 * @use_vref: Whether an external reference voltage on Vref pin should be used. 14 * Additional vref-supply must be s 14 * Additional vref-supply must be specified when used. 15 * @vref_buffered: Controls buffering of the e 15 * @vref_buffered: Controls buffering of the external reference voltage. 16 * 16 * 17 * Vref related settings are available only on 17 * Vref related settings are available only on MCP4756. See 18 * Documentation/devicetree/bindings/iio/dac/m 18 * Documentation/devicetree/bindings/iio/dac/microchip,mcp4725.yaml for more information. 19 */ 19 */ 20 struct mcp4725_platform_data { 20 struct mcp4725_platform_data { 21 bool use_vref; 21 bool use_vref; 22 bool vref_buffered; 22 bool vref_buffered; 23 }; 23 }; 24 24 25 #endif /* IIO_DAC_MCP4725_H_ */ 25 #endif /* IIO_DAC_MCP4725_H_ */ 26 26
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.