mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
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:
parent
20374d1a36
commit
dbdc025bb2
@ -52,5 +52,6 @@ source "drivers/iio/adc/Kconfig"
|
||||
source "drivers/iio/amplifiers/Kconfig"
|
||||
source "drivers/iio/light/Kconfig"
|
||||
source "drivers/iio/frequency/Kconfig"
|
||||
source "drivers/iio/dac/Kconfig"
|
||||
|
||||
endif # IIO
|
||||
|
@ -13,3 +13,4 @@ obj-y += adc/
|
||||
obj-y += amplifiers/
|
||||
obj-y += light/
|
||||
obj-y += frequency/
|
||||
obj-y += dac/
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include <linux/iio/iio.h>
|
||||
#include <linux/iio/sysfs.h>
|
||||
#include <linux/iio/events.h>
|
||||
#include "ad5421.h"
|
||||
#include <linux/iio/dac/ad5421.h>
|
||||
|
||||
|
||||
#define AD5421_REG_DAC_DATA 0x1
|
@ -19,8 +19,7 @@
|
||||
#include <linux/iio/iio.h>
|
||||
#include <linux/iio/sysfs.h>
|
||||
#include <linux/iio/events.h>
|
||||
|
||||
#include "ad5504.h"
|
||||
#include <linux/iio/dac/ad5504.h>
|
||||
|
||||
#define AD5505_BITS 12
|
||||
#define AD5504_RES_MASK ((1 << (AD5505_BITS)) - 1)
|
@ -19,8 +19,7 @@
|
||||
|
||||
#include <linux/iio/iio.h>
|
||||
#include <linux/iio/sysfs.h>
|
||||
|
||||
#include "ad5791.h"
|
||||
#include <linux/iio/dac/ad5791.h>
|
||||
|
||||
#define AD5791_RES_MASK(x) ((1 << (x)) - 1)
|
||||
#define AD5791_DAC_MASK AD5791_RES_MASK(20)
|
@ -27,8 +27,7 @@
|
||||
|
||||
#include <linux/iio/iio.h>
|
||||
#include <linux/iio/sysfs.h>
|
||||
|
||||
#include "max517.h"
|
||||
#include <linux/iio/dac/max517.h>
|
||||
|
||||
#define MAX517_DRV_NAME "max517"
|
||||
|
@ -29,7 +29,6 @@ source "drivers/staging/iio/accel/Kconfig"
|
||||
source "drivers/staging/iio/adc/Kconfig"
|
||||
source "drivers/staging/iio/addac/Kconfig"
|
||||
source "drivers/staging/iio/cdc/Kconfig"
|
||||
source "drivers/staging/iio/dac/Kconfig"
|
||||
source "drivers/staging/iio/frequency/Kconfig"
|
||||
source "drivers/staging/iio/gyro/Kconfig"
|
||||
source "drivers/staging/iio/impedance-analyzer/Kconfig"
|
||||
|
@ -17,7 +17,6 @@ obj-y += accel/
|
||||
obj-y += adc/
|
||||
obj-y += addac/
|
||||
obj-y += cdc/
|
||||
obj-y += dac/
|
||||
obj-y += frequency/
|
||||
obj-y += gyro/
|
||||
obj-y += impedance-analyzer/
|
||||
|
@ -1,10 +1,6 @@
|
||||
#ifndef __IIO_DAC_AD5421_H__
|
||||
#define __IIO_DAC_AD5421_H__
|
||||
|
||||
/*
|
||||
* TODO: This file needs to go into include/linux/iio
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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)
|
@ -9,10 +9,6 @@
|
||||
#ifndef SPI_AD5504_H_
|
||||
#define SPI_AD5504_H_
|
||||
|
||||
/*
|
||||
* TODO: struct ad5504_platform_data needs to go into include/linux/iio
|
||||
*/
|
||||
|
||||
struct ad5504_platform_data {
|
||||
u16 vref_mv;
|
||||
};
|
@ -9,10 +9,6 @@
|
||||
#ifndef SPI_AD5791_H_
|
||||
#define SPI_AD5791_H_
|
||||
|
||||
/*
|
||||
* TODO: struct ad5791_platform_data needs to go into include/linux/iio
|
||||
*/
|
||||
|
||||
/**
|
||||
* struct ad5791_platform_data - platform specific information
|
||||
* @vref_pos_mv: Vdd Positive Analog Supply Volatge (mV)
|
@ -8,10 +8,6 @@
|
||||
#ifndef IIO_DAC_MAX517_H_
|
||||
#define IIO_DAC_MAX517_H_
|
||||
|
||||
/*
|
||||
* TODO: struct max517_platform_data needs to go into include/linux/iio
|
||||
*/
|
||||
|
||||
struct max517_platform_data {
|
||||
u16 vref_mv[2];
|
||||
};
|
Loading…
Reference in New Issue
Block a user