Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alison Schofield and committed by
Greg Kroah-Hartman
f5d82ad9 e279ee89

+12 -30
+12 -2
drivers/staging/iio/impedance-analyzer/ad5933.c
··· 24 24 #include <linux/iio/buffer.h> 25 25 #include <linux/iio/kfifo_buf.h> 26 26 27 - #include "ad5933.h" 28 - 29 27 /* AD5933/AD5934 Registers */ 30 28 #define AD5933_REG_CONTROL_HB 0x80 /* R/W, 2 bytes */ 31 29 #define AD5933_REG_CONTROL_LB 0x81 /* R/W, 2 bytes */ ··· 83 85 84 86 #define AD5933_POLL_TIME_ms 10 85 87 #define AD5933_INIT_EXCITATION_TIME_ms 100 88 + 89 + /** 90 + * struct ad5933_platform_data - platform specific data 91 + * @ext_clk_Hz: the external clock frequency in Hz, if not set 92 + * the driver uses the internal clock (16.776 MHz) 93 + * @vref_mv: the external reference voltage in millivolt 94 + */ 95 + 96 + struct ad5933_platform_data { 97 + unsigned long ext_clk_Hz; 98 + unsigned short vref_mv; 99 + }; 86 100 87 101 struct ad5933_state { 88 102 struct i2c_client *client;
-28
drivers/staging/iio/impedance-analyzer/ad5933.h
··· 1 - /* 2 - * AD5933 AD5934 Impedance Converter, Network Analyzer 3 - * 4 - * Copyright 2011 Analog Devices Inc. 5 - * 6 - * Licensed under the GPL-2. 7 - */ 8 - 9 - #ifndef IIO_ADC_AD5933_H_ 10 - #define IIO_ADC_AD5933_H_ 11 - 12 - /* 13 - * TODO: struct ad5933_platform_data needs to go into include/linux/iio 14 - */ 15 - 16 - /** 17 - * struct ad5933_platform_data - platform specific data 18 - * @ext_clk_Hz: the external clock frequency in Hz, if not set 19 - * the driver uses the internal clock (16.776 MHz) 20 - * @vref_mv: the external reference voltage in millivolt 21 - */ 22 - 23 - struct ad5933_platform_data { 24 - unsigned long ext_clk_Hz; 25 - unsigned short vref_mv; 26 - }; 27 - 28 - #endif /* IIO_ADC_AD5933_H_ */