staging: iio: ad5933: move contents of header file to source file
authorAlison Schofield <amsfield22@gmail.com>
Thu, 17 Mar 2016 06:59:19 +0000 (23:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
The contents of the header file are used only by this single
source file.  Move content into .c and remove .h.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/impedance-analyzer/ad5933.c
drivers/staging/iio/impedance-analyzer/ad5933.h [deleted file]

index 428587433c4a3e4f0e0c924160c5162eff48c4a6..f2c305cfdfc33beaeba525b3d401e95429a96232 100644 (file)
@@ -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 */
 #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;
diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.h b/drivers/staging/iio/impedance-analyzer/ad5933.h
deleted file mode 100644 (file)
index b140e42..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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_ */