staging:iio: Move DAC drivers out of staging
The IIO DAC drivers are in a reasonably good shape. They all make use of channel spec and non of them provides non-documented sysfs attributes. Code style should be OK as well, both checkpatch and coccicheck only report trivial issues. So lets move the whole folder out of staging. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
20374d1a36
commit
dbdc025bb2
28
include/linux/iio/dac/ad5421.h
Normal file
28
include/linux/iio/dac/ad5421.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef __IIO_DAC_AD5421_H__
|
||||
#define __IIO_DAC_AD5421_H__
|
||||
|
||||
/**
|
||||
* enum ad5421_current_range - Current range the AD5421 is configured for.
|
||||
* @AD5421_CURRENT_RANGE_4mA_20mA: 4 mA to 20 mA (RANGE1,0 pins = 00)
|
||||
* @AD5421_CURRENT_RANGE_3mA8_21mA: 3.8 mA to 21 mA (RANGE1,0 pins = x1)
|
||||
* @AD5421_CURRENT_RANGE_3mA2_24mA: 3.2 mA to 24 mA (RANGE1,0 pins = 10)
|
||||
*/
|
||||
|
||||
enum ad5421_current_range {
|
||||
AD5421_CURRENT_RANGE_4mA_20mA,
|
||||
AD5421_CURRENT_RANGE_3mA8_21mA,
|
||||
AD5421_CURRENT_RANGE_3mA2_24mA,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct ad5421_platform_data - AD5421 DAC driver platform data
|
||||
* @external_vref: whether an external reference voltage is used or not
|
||||
* @current_range: Current range the AD5421 is configured for
|
||||
*/
|
||||
|
||||
struct ad5421_platform_data {
|
||||
bool external_vref;
|
||||
enum ad5421_current_range current_range;
|
||||
};
|
||||
|
||||
#endif
|
16
include/linux/iio/dac/ad5504.h
Normal file
16
include/linux/iio/dac/ad5504.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* AD5504 SPI DAC driver
|
||||
*
|
||||
* Copyright 2011 Analog Devices Inc.
|
||||
*
|
||||
* Licensed under the GPL-2.
|
||||
*/
|
||||
|
||||
#ifndef SPI_AD5504_H_
|
||||
#define SPI_AD5504_H_
|
||||
|
||||
struct ad5504_platform_data {
|
||||
u16 vref_mv;
|
||||
};
|
||||
|
||||
#endif /* SPI_AD5504_H_ */
|
25
include/linux/iio/dac/ad5791.h
Normal file
25
include/linux/iio/dac/ad5791.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* AD5791 SPI DAC driver
|
||||
*
|
||||
* Copyright 2011 Analog Devices Inc.
|
||||
*
|
||||
* Licensed under the GPL-2.
|
||||
*/
|
||||
|
||||
#ifndef SPI_AD5791_H_
|
||||
#define SPI_AD5791_H_
|
||||
|
||||
/**
|
||||
* struct ad5791_platform_data - platform specific information
|
||||
* @vref_pos_mv: Vdd Positive Analog Supply Volatge (mV)
|
||||
* @vref_neg_mv: Vdd Negative Analog Supply Volatge (mV)
|
||||
* @use_rbuf_gain2: ext. amplifier connected in gain of two configuration
|
||||
*/
|
||||
|
||||
struct ad5791_platform_data {
|
||||
u16 vref_pos_mv;
|
||||
u16 vref_neg_mv;
|
||||
bool use_rbuf_gain2;
|
||||
};
|
||||
|
||||
#endif /* SPI_AD5791_H_ */
|
15
include/linux/iio/dac/max517.h
Normal file
15
include/linux/iio/dac/max517.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* MAX517 DAC driver
|
||||
*
|
||||
* Copyright 2011 Roland Stigge <stigge@antcom.de>
|
||||
*
|
||||
* Licensed under the GPL-2 or later.
|
||||
*/
|
||||
#ifndef IIO_DAC_MAX517_H_
|
||||
#define IIO_DAC_MAX517_H_
|
||||
|
||||
struct max517_platform_data {
|
||||
u16 vref_mv[2];
|
||||
};
|
||||
|
||||
#endif /* IIO_DAC_MAX517_H_ */
|
Reference in New Issue
Block a user