Skip to content

Commit

Permalink
staging:iio: Move DAC drivers out of staging
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 20374d1 commit dbdc025
Show file tree
Hide file tree
Showing 23 changed files with 6 additions and 25 deletions.
1 change: 1 addition & 0 deletions drivers/iio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions drivers/iio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ obj-y += adc/
obj-y += amplifiers/
obj-y += light/
obj-y += frequency/
obj-y += dac/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/iio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/iio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
Expand Down

0 comments on commit dbdc025

Please sign in to comment.