aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 18:46:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-26 18:46:08 -0400
commit23908db413eccd77084b09c9b0a4451dfb0524c0 (patch)
tree646f21a92496bdc04175e95642b0ecb2dc3dd09e /include/linux
parent8d7804a2f03dbd34940fcb426450c730adf29dae (diff)
parent53a20e9e378ecd52f0afa4b60f8f8c81b6f97c27 (diff)
Merge tag 'staging-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver updates from Greg KH: "Here's the big, really big, staging tree patches for 4.2-rc1. Loads of stuff in here, almost all just coding style fixes / churn, and a few new drivers as well, one of which I just disabled from the build a few minutes ago due to way too many build warnings. Other than the one "disable this driver" patch, all of these have been in linux-next for quite a while with no reported issues" * tag 'staging-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1163 commits) staging: wilc1000: disable driver due to build warnings Staging: rts5208: fix CHANGE_LINK_STATE value Staging: sm750fb: ddk750_swi2c.c: Insert spaces before parenthesis Staging: sm750fb: ddk750_swi2c.c: Place braces on correct lines Staging: sm750fb: ddk750_swi2c.c: Insert spaces around operators Staging: sm750fb: ddk750_swi2c.c: Replace spaces with tabs Staging: sm750fb: ddk750_swi2c.h: Shorten lines to under 80 characters Staging: sm750fb: ddk750_swi2c.h: Replace spaces with tabs Staging: sm750fb: modedb.h: Shorten lines to under 80 characters Staging: sm750fb: modedb.h: Replace spaces with tabs staging: comedi: addi_apci_3120: rename 'this_board' variables staging: comedi: addi_apci_1516: rename 'this_board' variables staging: comedi: ni_atmio: cleanup ni_getboardtype() staging: comedi: vmk80xx: sanity check context used to get the boardinfo staging: comedi: vmk80xx: rename 'boardinfo' variables staging: comedi: dt3000: rename 'this_board' variables staging: comedi: adv_pci_dio: rename 'this_board' variables staging: comedi: cb_pcidas64: rename 'thisboard' variables staging: comedi: cb_pcidas: rename 'thisboard' variables staging: comedi: me4000: rename 'thisboard' variables ...
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/goldfish.h19
-rw-r--r--include/linux/iio/buffer.h3
-rw-r--r--include/linux/iio/iio.h3
-rw-r--r--include/linux/iio/types.h2
-rw-r--r--include/linux/vme.h2
5 files changed, 25 insertions, 4 deletions
diff --git a/include/linux/goldfish.h b/include/linux/goldfish.h
index 569236e6b2bc..93e080b39cf6 100644
--- a/include/linux/goldfish.h
+++ b/include/linux/goldfish.h
@@ -3,13 +3,24 @@
3 3
4/* Helpers for Goldfish virtual platform */ 4/* Helpers for Goldfish virtual platform */
5 5
6static inline void gf_write64(unsigned long data, 6static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
7 void __iomem *portl, void __iomem *porth) 7 void __iomem *porth)
8{ 8{
9 writel((u32)data, portl); 9 writel((u32)(unsigned long)ptr, portl);
10#ifdef CONFIG_64BIT 10#ifdef CONFIG_64BIT
11 writel(data>>32, porth); 11 writel((unsigned long)ptr >> 32, porth);
12#endif 12#endif
13} 13}
14 14
15static inline void gf_write_dma_addr(const dma_addr_t addr,
16 void __iomem *portl,
17 void __iomem *porth)
18{
19 writel((u32)addr, portl);
20#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
21 writel(addr >> 32, porth);
22#endif
23}
24
25
15#endif /* __LINUX_GOLDFISH_H */ 26#endif /* __LINUX_GOLDFISH_H */
diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h
index eb8622b78ec9..1600c55828e0 100644
--- a/include/linux/iio/buffer.h
+++ b/include/linux/iio/buffer.h
@@ -29,6 +29,7 @@ struct iio_buffer;
29 * @set_length: set number of datums in buffer 29 * @set_length: set number of datums in buffer
30 * @release: called when the last reference to the buffer is dropped, 30 * @release: called when the last reference to the buffer is dropped,
31 * should free all resources allocated by the buffer. 31 * should free all resources allocated by the buffer.
32 * @modes: Supported operating modes by this buffer type
32 * 33 *
33 * The purpose of this structure is to make the buffer element 34 * The purpose of this structure is to make the buffer element
34 * modular as event for a given driver, different usecases may require 35 * modular as event for a given driver, different usecases may require
@@ -51,6 +52,8 @@ struct iio_buffer_access_funcs {
51 int (*set_length)(struct iio_buffer *buffer, int length); 52 int (*set_length)(struct iio_buffer *buffer, int length);
52 53
53 void (*release)(struct iio_buffer *buffer); 54 void (*release)(struct iio_buffer *buffer);
55
56 unsigned int modes;
54}; 57};
55 58
56/** 59/**
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index d86b753e9b30..f79148261d16 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -32,6 +32,7 @@ enum iio_chan_info_enum {
32 IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW, 32 IIO_CHAN_INFO_QUADRATURE_CORRECTION_RAW,
33 IIO_CHAN_INFO_AVERAGE_RAW, 33 IIO_CHAN_INFO_AVERAGE_RAW,
34 IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY, 34 IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY,
35 IIO_CHAN_INFO_HIGH_PASS_FILTER_3DB_FREQUENCY,
35 IIO_CHAN_INFO_SAMP_FREQ, 36 IIO_CHAN_INFO_SAMP_FREQ,
36 IIO_CHAN_INFO_FREQUENCY, 37 IIO_CHAN_INFO_FREQUENCY,
37 IIO_CHAN_INFO_PHASE, 38 IIO_CHAN_INFO_PHASE,
@@ -43,6 +44,8 @@ enum iio_chan_info_enum {
43 IIO_CHAN_INFO_CALIBWEIGHT, 44 IIO_CHAN_INFO_CALIBWEIGHT,
44 IIO_CHAN_INFO_DEBOUNCE_COUNT, 45 IIO_CHAN_INFO_DEBOUNCE_COUNT,
45 IIO_CHAN_INFO_DEBOUNCE_TIME, 46 IIO_CHAN_INFO_DEBOUNCE_TIME,
47 IIO_CHAN_INFO_CALIBEMISSIVITY,
48 IIO_CHAN_INFO_OVERSAMPLING_RATIO,
46}; 49};
47 50
48enum iio_shared_by { 51enum iio_shared_by {
diff --git a/include/linux/iio/types.h b/include/linux/iio/types.h
index 942b6de68e2f..32b579525004 100644
--- a/include/linux/iio/types.h
+++ b/include/linux/iio/types.h
@@ -17,6 +17,8 @@ enum iio_event_info {
17 IIO_EV_INFO_VALUE, 17 IIO_EV_INFO_VALUE,
18 IIO_EV_INFO_HYSTERESIS, 18 IIO_EV_INFO_HYSTERESIS,
19 IIO_EV_INFO_PERIOD, 19 IIO_EV_INFO_PERIOD,
20 IIO_EV_INFO_HIGH_PASS_FILTER_3DB,
21 IIO_EV_INFO_LOW_PASS_FILTER_3DB,
20}; 22};
21 23
22#define IIO_VAL_INT 1 24#define IIO_VAL_INT 1
diff --git a/include/linux/vme.h b/include/linux/vme.h
index 79242e9c06b8..c0131358f351 100644
--- a/include/linux/vme.h
+++ b/include/linux/vme.h
@@ -120,6 +120,8 @@ void vme_free_consistent(struct vme_resource *, size_t, void *,
120 dma_addr_t); 120 dma_addr_t);
121 121
122size_t vme_get_size(struct vme_resource *); 122size_t vme_get_size(struct vme_resource *);
123int vme_check_window(u32 aspace, unsigned long long vme_base,
124 unsigned long long size);
123 125
124struct vme_resource *vme_slave_request(struct vme_dev *, u32, u32); 126struct vme_resource *vme_slave_request(struct vme_dev *, u32, u32);
125int vme_slave_set(struct vme_resource *, int, unsigned long long, 127int vme_slave_set(struct vme_resource *, int, unsigned long long,