aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/eeprom_93xx46.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-17 16:47:50 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-17 16:47:50 -0400
commit8eee93e2576c303b6071368456dcd6c9a5a021c9 (patch)
tree0c65d2dc160af900e0c87ebc4b41979c0b9075cf /include/linux/eeprom_93xx46.h
parent1a4ab084afaa8e5405a3e22aca21478ee3ca5d59 (diff)
parent16617535684faf9de30620de83667214297a36b8 (diff)
Merge tag 'char-misc-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc updates from Greg KH: "Here is the big char/misc driver update for 4.6-rc1. The majority of the patches here is hwtracing and some new mic drivers, but there's a lot of other driver updates as well. Full details in the shortlog. All have been in linux-next for a while with no reported issues" * tag 'char-misc-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (238 commits) goldfish: Fix build error of missing ioremap on UM nvmem: mediatek: Fix later provider initialization nvmem: imx-ocotp: Fix return value of imx_ocotp_read nvmem: Fix dependencies for !HAS_IOMEM archs char: genrtc: replace blacklist with whitelist drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular drivers: char: mem: fix IS_ERROR_VALUE usage char: xillybus: Fix internal data structure initialization pch_phub: return -ENODATA if ROM can't be mapped Drivers: hv: vmbus: Support kexec on ws2012 r2 and above Drivers: hv: vmbus: Support handling messages on multiple CPUs Drivers: hv: utils: Remove util transport handler from list if registration fails Drivers: hv: util: Pass the channel information during the init call Drivers: hv: vmbus: avoid unneeded compiler optimizations in vmbus_wait_for_unload() Drivers: hv: vmbus: remove code duplication in message handling Drivers: hv: vmbus: avoid wait_for_completion() on crash Drivers: hv: vmbus: don't loose HVMSG_TIMER_EXPIRED messages misc: at24: replace memory_accessor with nvmem_device_read eeprom: 93xx46: extend driver to plug into the NVMEM framework eeprom: at25: extend driver to plug into the NVMEM framework ...
Diffstat (limited to 'include/linux/eeprom_93xx46.h')
-rw-r--r--include/linux/eeprom_93xx46.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/eeprom_93xx46.h b/include/linux/eeprom_93xx46.h
index 06791811e49d..885f587a3555 100644
--- a/include/linux/eeprom_93xx46.h
+++ b/include/linux/eeprom_93xx46.h
@@ -3,16 +3,25 @@
3 * platform description for 93xx46 EEPROMs. 3 * platform description for 93xx46 EEPROMs.
4 */ 4 */
5 5
6struct gpio_desc;
7
6struct eeprom_93xx46_platform_data { 8struct eeprom_93xx46_platform_data {
7 unsigned char flags; 9 unsigned char flags;
8#define EE_ADDR8 0x01 /* 8 bit addr. cfg */ 10#define EE_ADDR8 0x01 /* 8 bit addr. cfg */
9#define EE_ADDR16 0x02 /* 16 bit addr. cfg */ 11#define EE_ADDR16 0x02 /* 16 bit addr. cfg */
10#define EE_READONLY 0x08 /* forbid writing */ 12#define EE_READONLY 0x08 /* forbid writing */
11 13
14 unsigned int quirks;
15/* Single word read transfers only; no sequential read. */
16#define EEPROM_93XX46_QUIRK_SINGLE_WORD_READ (1 << 0)
17/* Instructions such as EWEN are (addrlen + 2) in length. */
18#define EEPROM_93XX46_QUIRK_INSTRUCTION_LENGTH (1 << 1)
19
12 /* 20 /*
13 * optional hooks to control additional logic 21 * optional hooks to control additional logic
14 * before and after spi transfer. 22 * before and after spi transfer.
15 */ 23 */
16 void (*prepare)(void *); 24 void (*prepare)(void *);
17 void (*finish)(void *); 25 void (*finish)(void *);
26 struct gpio_desc *select;
18}; 27};