Logo
Explore Help
Register Sign In
Evolution-x-devices/kernel_google_b1c1
2
0
Fork 0
You've already forked kernel_google_b1c1
mirror of https://github.com/Evolution-X-Devices/kernel_google_b1c1 synced 2026-02-10 05:49:13 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
5cdc7f02162aa8b980bd5d89e86fd94de0285ca3
kernel_google_b1c1/include/linux/platform_data/ad7291.h

13 lines
257 B
C
Raw Normal View History

staging:iio:ad7291: Rework regulator handling Add platform_data for the driver which allows to specify whether an external reference voltage is used or not. It is not possible to use the return value of regulator_get() for this since the regulator framework is able to return a dummy regulator in case no regulator has been specified. In this case the driver will always get a valid regulator, no matter if it has been specified or not. Also make the regulator non-optional if platform_data states that an external reference voltage should be used. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-06-14 16:58:00 +01:00
#ifndef __IIO_AD7291_H__
#define __IIO_AD7291_H__
/**
* struct ad7291_platform_data - AD7291 platform data
* @use_external_ref: Whether to use an external or internal reference voltage
*/
struct ad7291_platform_data {
bool use_external_ref;
};
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 1062ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API