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

Staging: iio: Added define guards where needed

The following files were added define guards to prevent multiple
inclusion.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cristina Opriceana and committed by
Greg Kroah-Hartman
37e3be9d e384b69a

+19 -1
+4
drivers/staging/iio/Documentation/iio_utils.h
··· 6 6 * under the terms of the GNU General Public License version 2 as published by 7 7 * the Free Software Foundation. 8 8 */ 9 + #ifndef _IIO_UTILS_H 10 + #define _IIO_UTILS_H 9 11 10 12 #include <string.h> 11 13 #include <stdlib.h> ··· 683 681 free(temp); 684 682 return ret; 685 683 } 684 + 685 + #endif /* _IIO_UTILS_H */
+4 -1
drivers/staging/iio/accel/sca3000.h
··· 38 38 * Can probably alleviate this by reading the interrupt register on start, but 39 39 * that is really just brushing the problem under the carpet. 40 40 */ 41 + #ifndef _SCA3000 42 + #define _SCA3000 43 + 41 44 #define SCA3000_WRITE_REG(a) (((a) << 2) | 0x02) 42 45 #define SCA3000_READ_REG(a) ((a) << 2) 43 46 ··· 275 272 } 276 273 277 274 #endif 278 - 275 + #endif /* _SCA3000 */
+4
drivers/staging/iio/frequency/dds.h
··· 5 5 * 6 6 * Licensed under the GPL-2 or later. 7 7 */ 8 + #ifndef IIO_DDS_H_ 9 + #define IIO_DDS_H_ 8 10 9 11 /** 10 12 * /sys/bus/iio/devices/.../out_altvoltageX_frequencyY ··· 110 108 #define IIO_CONST_ATTR_OUT_WAVETYPES_AVAILABLE(_channel, _output, _modes)\ 111 109 IIO_CONST_ATTR( \ 112 110 out_altvoltage##_channel##_out##_output##_wavetype_available, _modes) 111 + 112 + #endif /* IIO_DDS_H_ */
+4
drivers/staging/iio/meter/meter.h
··· 1 + #ifndef _METER_H 2 + #define _METER_H 3 + 1 4 #include <linux/iio/sysfs.h> 2 5 3 6 /* metering ic types of attribute */ ··· 397 394 #define IIO_EVENT_ATTR_VPKLVL_EXC(_evlist, _show, _store, _mask) \ 398 395 IIO_EVENT_ATTR_SH(vpklvl_exc, _evlist, _show, _store, _mask) 399 396 397 + #endif /* _METER_H */
+3
drivers/staging/iio/resolver/ad2s1210.h
··· 8 8 * it under the terms of the GNU General Public License version 2 as 9 9 * published by the Free Software Foundation. 10 10 */ 11 + #ifndef _AD2S1210_H 12 + #define _AD2S1210_H 11 13 12 14 struct ad2s1210_platform_data { 13 15 unsigned sample; ··· 17 15 unsigned res[2]; 18 16 bool gpioin; 19 17 }; 18 + #endif /* _AD2S1210_H */