aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-18 01:13:41 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-18 01:13:41 -0400
commit9dffdb38d864ae89e16ff7b3a09451270736e35b (patch)
tree709caf4ff2790a993ca11a40233ab241475451be /include/linux
parent10fdfee7f7fd8d4a6a8455ac4c9fbbc51d79b9f7 (diff)
parent2df122bdebaba1daad3a8087b89a5e3456474538 (diff)
Merge tag 'staging-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver updates from Greg KH: "Here is the big staging driver pull request for 4.6-rc1. Lots of little things here, over 1600 patches or so. Notable is all of the good Lustre work happening, those developers have finally woken up and are cleaning up their code greatly. The Outreachy intern application process is also happening, which brought in another 400 or so patches. Full details are in the very long shortlog. All of these have been in linux-next with no reported issues" * tag 'staging-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1673 commits) staging: lustre: fix aligments in lnet selftest staging: lustre: report minimum of two buffers for LNet selftest load test staging: lustre: test for proper errno code in lstcon_rpc_trans_abort staging: lustre: filter remaining extra spacing for lnet selftest staging: lustre: remove extra spacing when setting variable for lnet selftest staging: lustre: remove extra spacing of variable declartions for lnet selftest staging: lustre: fix spacing issues checkpatch reported in lnet selftest staging: lustre: remove returns in void function for lnet selftest staging: lustre: fix bogus lst errors for lnet selftest staging: netlogic: Replacing pr_err with dev_err after the call to devm_kzalloc staging: mt29f_spinand: Replacing pr_info with dev_info after the call to devm_kzalloc staging: android: ion: fix up file mode staging: ion: debugfs invalid gfp mask staging: rts5208: Replace pci_enable_device with pcim_enable_device Staging: ieee80211: Place constant on right side of the test. staging: speakup: Replace del_timer with del_timer_sync staging: lowmemorykiller: fix 2 checks that checkpatch complained staging: mt29f_spinand: Drop void pointer cast staging: rdma: hfi1: file_ops: Replace ALIGN with PAGE_ALIGN staging: rdma: hfi1: driver: Replace IS_ALIGNED with PAGE_ALIGNED ...
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/exportfs.h6
-rw-r--r--include/linux/fence.h2
-rw-r--r--include/linux/iio/common/st_sensors.h4
-rw-r--r--include/linux/iio/iio.h8
-rw-r--r--include/linux/irqdomain.h1
-rw-r--r--include/linux/msi.h9
-rw-r--r--include/linux/platform_data/ad5761.h44
7 files changed, 70 insertions, 4 deletions
diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h
index fa05e04c5531..d8414502edb4 100644
--- a/include/linux/exportfs.h
+++ b/include/linux/exportfs.h
@@ -97,6 +97,12 @@ enum fid_type {
97 FILEID_FAT_WITH_PARENT = 0x72, 97 FILEID_FAT_WITH_PARENT = 0x72,
98 98
99 /* 99 /*
100 * 128 bit child FID (struct lu_fid)
101 * 128 bit parent FID (struct lu_fid)
102 */
103 FILEID_LUSTRE = 0x97,
104
105 /*
100 * Filesystems must not use 0xff file ID. 106 * Filesystems must not use 0xff file ID.
101 */ 107 */
102 FILEID_INVALID = 0xff, 108 FILEID_INVALID = 0xff,
diff --git a/include/linux/fence.h b/include/linux/fence.h
index bb522011383b..605bd88246a6 100644
--- a/include/linux/fence.h
+++ b/include/linux/fence.h
@@ -79,6 +79,8 @@ struct fence {
79 unsigned long flags; 79 unsigned long flags;
80 ktime_t timestamp; 80 ktime_t timestamp;
81 int status; 81 int status;
82 struct list_head child_list;
83 struct list_head active_list;
82}; 84};
83 85
84enum fence_flag_bits { 86enum fence_flag_bits {
diff --git a/include/linux/iio/common/st_sensors.h b/include/linux/iio/common/st_sensors.h
index 2fe939c73cd2..6670c3d25c58 100644
--- a/include/linux/iio/common/st_sensors.h
+++ b/include/linux/iio/common/st_sensors.h
@@ -119,6 +119,8 @@ struct st_sensor_bdu {
119 * @addr: address of the register. 119 * @addr: address of the register.
120 * @mask_int1: mask to enable/disable IRQ on INT1 pin. 120 * @mask_int1: mask to enable/disable IRQ on INT1 pin.
121 * @mask_int2: mask to enable/disable IRQ on INT2 pin. 121 * @mask_int2: mask to enable/disable IRQ on INT2 pin.
122 * @addr_ihl: address to enable/disable active low on the INT lines.
123 * @mask_ihl: mask to enable/disable active low on the INT lines.
122 * struct ig1 - represents the Interrupt Generator 1 of sensors. 124 * struct ig1 - represents the Interrupt Generator 1 of sensors.
123 * @en_addr: address of the enable ig1 register. 125 * @en_addr: address of the enable ig1 register.
124 * @en_mask: mask to write the on/off value for enable. 126 * @en_mask: mask to write the on/off value for enable.
@@ -127,6 +129,8 @@ struct st_sensor_data_ready_irq {
127 u8 addr; 129 u8 addr;
128 u8 mask_int1; 130 u8 mask_int1;
129 u8 mask_int2; 131 u8 mask_int2;
132 u8 addr_ihl;
133 u8 mask_ihl;
130 struct { 134 struct {
131 u8 en_addr; 135 u8 en_addr;
132 u8 en_mask; 136 u8 en_mask;
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index b5894118755f..b2b16772c651 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -180,18 +180,18 @@ struct iio_event_spec {
180 * @address: Driver specific identifier. 180 * @address: Driver specific identifier.
181 * @scan_index: Monotonic index to give ordering in scans when read 181 * @scan_index: Monotonic index to give ordering in scans when read
182 * from a buffer. 182 * from a buffer.
183 * @scan_type: Sign: 's' or 'u' to specify signed or unsigned 183 * @scan_type: sign: 's' or 'u' to specify signed or unsigned
184 * realbits: Number of valid bits of data 184 * realbits: Number of valid bits of data
185 * storage_bits: Realbits + padding 185 * storagebits: Realbits + padding
186 * shift: Shift right by this before masking out 186 * shift: Shift right by this before masking out
187 * realbits. 187 * realbits.
188 * endianness: little or big endian
189 * repeat: Number of times real/storage bits 188 * repeat: Number of times real/storage bits
190 * repeats. When the repeat element is 189 * repeats. When the repeat element is
191 * more than 1, then the type element in 190 * more than 1, then the type element in
192 * sysfs will show a repeat value. 191 * sysfs will show a repeat value.
193 * Otherwise, the number of repetitions is 192 * Otherwise, the number of repetitions is
194 * omitted. 193 * omitted.
194 * endianness: little or big endian
195 * @info_mask_separate: What information is to be exported that is specific to 195 * @info_mask_separate: What information is to be exported that is specific to
196 * this channel. 196 * this channel.
197 * @info_mask_shared_by_type: What information is to be exported that is shared 197 * @info_mask_shared_by_type: What information is to be exported that is shared
@@ -448,7 +448,7 @@ struct iio_buffer_setup_ops {
448 * @buffer: [DRIVER] any buffer present 448 * @buffer: [DRIVER] any buffer present
449 * @buffer_list: [INTERN] list of all buffers currently attached 449 * @buffer_list: [INTERN] list of all buffers currently attached
450 * @scan_bytes: [INTERN] num bytes captured to be fed to buffer demux 450 * @scan_bytes: [INTERN] num bytes captured to be fed to buffer demux
451 * @mlock: [INTERN] lock used to prevent simultaneous device state 451 * @mlock: [DRIVER] lock used to prevent simultaneous device state
452 * changes 452 * changes
453 * @available_scan_masks: [DRIVER] optional array of allowed bitmasks 453 * @available_scan_masks: [DRIVER] optional array of allowed bitmasks
454 * @masklength: [INTERN] the length of the mask established from 454 * @masklength: [INTERN] the length of the mask established from
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index ed48594e96d2..2aed04396210 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -75,6 +75,7 @@ enum irq_domain_bus_token {
75 DOMAIN_BUS_PLATFORM_MSI, 75 DOMAIN_BUS_PLATFORM_MSI,
76 DOMAIN_BUS_NEXUS, 76 DOMAIN_BUS_NEXUS,
77 DOMAIN_BUS_IPI, 77 DOMAIN_BUS_IPI,
78 DOMAIN_BUS_FSL_MC_MSI,
78}; 79};
79 80
80/** 81/**
diff --git a/include/linux/msi.h b/include/linux/msi.h
index a2a0068a8387..8b425c66305a 100644
--- a/include/linux/msi.h
+++ b/include/linux/msi.h
@@ -33,6 +33,14 @@ struct platform_msi_desc {
33}; 33};
34 34
35/** 35/**
36 * fsl_mc_msi_desc - FSL-MC device specific msi descriptor data
37 * @msi_index: The index of the MSI descriptor
38 */
39struct fsl_mc_msi_desc {
40 u16 msi_index;
41};
42
43/**
36 * struct msi_desc - Descriptor structure for MSI based interrupts 44 * struct msi_desc - Descriptor structure for MSI based interrupts
37 * @list: List head for management 45 * @list: List head for management
38 * @irq: The base interrupt number 46 * @irq: The base interrupt number
@@ -87,6 +95,7 @@ struct msi_desc {
87 * tree wide cleanup. 95 * tree wide cleanup.
88 */ 96 */
89 struct platform_msi_desc platform; 97 struct platform_msi_desc platform;
98 struct fsl_mc_msi_desc fsl_mc;
90 }; 99 };
91}; 100};
92 101
diff --git a/include/linux/platform_data/ad5761.h b/include/linux/platform_data/ad5761.h
new file mode 100644
index 000000000000..7bd8ed7d978e
--- /dev/null
+++ b/include/linux/platform_data/ad5761.h
@@ -0,0 +1,44 @@
1/*
2 * AD5721, AD5721R, AD5761, AD5761R, Voltage Output Digital to Analog Converter
3 *
4 * Copyright 2016 Qtechnology A/S
5 * 2016 Ricardo Ribalda <ricardo.ribalda@gmail.com>
6 *
7 * Licensed under the GPL-2.
8 */
9#ifndef __LINUX_PLATFORM_DATA_AD5761_H__
10#define __LINUX_PLATFORM_DATA_AD5761_H__
11
12/**
13 * enum ad5761_voltage_range - Voltage range the AD5761 is configured for.
14 * @AD5761_VOLTAGE_RANGE_M10V_10V: -10V to 10V
15 * @AD5761_VOLTAGE_RANGE_0V_10V: 0V to 10V
16 * @AD5761_VOLTAGE_RANGE_M5V_5V: -5V to 5V
17 * @AD5761_VOLTAGE_RANGE_0V_5V: 0V to 5V
18 * @AD5761_VOLTAGE_RANGE_M2V5_7V5: -2.5V to 7.5V
19 * @AD5761_VOLTAGE_RANGE_M3V_3V: -3V to 3V
20 * @AD5761_VOLTAGE_RANGE_0V_16V: 0V to 16V
21 * @AD5761_VOLTAGE_RANGE_0V_20V: 0V to 20V
22 */
23
24enum ad5761_voltage_range {
25 AD5761_VOLTAGE_RANGE_M10V_10V,
26 AD5761_VOLTAGE_RANGE_0V_10V,
27 AD5761_VOLTAGE_RANGE_M5V_5V,
28 AD5761_VOLTAGE_RANGE_0V_5V,
29 AD5761_VOLTAGE_RANGE_M2V5_7V5,
30 AD5761_VOLTAGE_RANGE_M3V_3V,
31 AD5761_VOLTAGE_RANGE_0V_16V,
32 AD5761_VOLTAGE_RANGE_0V_20V,
33};
34
35/**
36 * struct ad5761_platform_data - AD5761 DAC driver platform data
37 * @voltage_range: Voltage range the AD5761 is configured for
38 */
39
40struct ad5761_platform_data {
41 enum ad5761_voltage_range voltage_range;
42};
43
44#endif