Commit f5d82ad9 authored by Alison Schofield's avatar Alison Schofield Committed by Greg Kroah-Hartman

staging: iio: ad5933: move contents of header file to source file

The contents of the header file are used only by this single
source file.  Move content into .c and remove .h.
Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e279ee89
......@@ -24,8 +24,6 @@
#include <linux/iio/buffer.h>
#include <linux/iio/kfifo_buf.h>
#include "ad5933.h"
/* AD5933/AD5934 Registers */
#define AD5933_REG_CONTROL_HB 0x80 /* R/W, 2 bytes */
#define AD5933_REG_CONTROL_LB 0x81 /* R/W, 2 bytes */
......@@ -86,6 +84,18 @@
#define AD5933_POLL_TIME_ms 10
#define AD5933_INIT_EXCITATION_TIME_ms 100
/**
* struct ad5933_platform_data - platform specific data
* @ext_clk_Hz: the external clock frequency in Hz, if not set
* the driver uses the internal clock (16.776 MHz)
* @vref_mv: the external reference voltage in millivolt
*/
struct ad5933_platform_data {
unsigned long ext_clk_Hz;
unsigned short vref_mv;
};
struct ad5933_state {
struct i2c_client *client;
struct regulator *reg;
......
/*
* AD5933 AD5934 Impedance Converter, Network Analyzer
*
* Copyright 2011 Analog Devices Inc.
*
* Licensed under the GPL-2.
*/
#ifndef IIO_ADC_AD5933_H_
#define IIO_ADC_AD5933_H_
/*
* TODO: struct ad5933_platform_data needs to go into include/linux/iio
*/
/**
* struct ad5933_platform_data - platform specific data
* @ext_clk_Hz: the external clock frequency in Hz, if not set
* the driver uses the internal clock (16.776 MHz)
* @vref_mv: the external reference voltage in millivolt
*/
struct ad5933_platform_data {
unsigned long ext_clk_Hz;
unsigned short vref_mv;
};
#endif /* IIO_ADC_AD5933_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment