diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-17 16:47:50 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-17 16:47:50 -0400 |
| commit | 8eee93e2576c303b6071368456dcd6c9a5a021c9 (patch) | |
| tree | 0c65d2dc160af900e0c87ebc4b41979c0b9075cf /include/linux/platform_data | |
| parent | 1a4ab084afaa8e5405a3e22aca21478ee3ca5d59 (diff) | |
| parent | 16617535684faf9de30620de83667214297a36b8 (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/platform_data')
| -rw-r--r-- | include/linux/platform_data/at24.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_data/at24.h index c42aa89d34ee..dc9a13e5acda 100644 --- a/include/linux/platform_data/at24.h +++ b/include/linux/platform_data/at24.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #define _LINUX_AT24_H | 9 | #define _LINUX_AT24_H |
| 10 | 10 | ||
| 11 | #include <linux/types.h> | 11 | #include <linux/types.h> |
| 12 | #include <linux/memory.h> | 12 | #include <linux/nvmem-consumer.h> |
| 13 | 13 | ||
| 14 | /** | 14 | /** |
| 15 | * struct at24_platform_data - data to set up at24 (generic eeprom) driver | 15 | * struct at24_platform_data - data to set up at24 (generic eeprom) driver |
| @@ -17,7 +17,7 @@ | |||
| 17 | * @page_size: number of byte which can be written in one go | 17 | * @page_size: number of byte which can be written in one go |
| 18 | * @flags: tunable options, check AT24_FLAG_* defines | 18 | * @flags: tunable options, check AT24_FLAG_* defines |
| 19 | * @setup: an optional callback invoked after eeprom is probed; enables kernel | 19 | * @setup: an optional callback invoked after eeprom is probed; enables kernel |
| 20 | code to access eeprom via memory_accessor, see example | 20 | code to access eeprom via nvmem, see example |
| 21 | * @context: optional parameter passed to setup() | 21 | * @context: optional parameter passed to setup() |
| 22 | * | 22 | * |
| 23 | * If you set up a custom eeprom type, please double-check the parameters. | 23 | * If you set up a custom eeprom type, please double-check the parameters. |
| @@ -26,13 +26,13 @@ | |||
| 26 | * | 26 | * |
| 27 | * An example in pseudo code for a setup() callback: | 27 | * An example in pseudo code for a setup() callback: |
| 28 | * | 28 | * |
| 29 | * void get_mac_addr(struct memory_accessor *mem_acc, void *context) | 29 | * void get_mac_addr(struct mvmem_device *nvmem, void *context) |
| 30 | * { | 30 | * { |
| 31 | * u8 *mac_addr = ethernet_pdata->mac_addr; | 31 | * u8 *mac_addr = ethernet_pdata->mac_addr; |
| 32 | * off_t offset = context; | 32 | * off_t offset = context; |
| 33 | * | 33 | * |
| 34 | * // Read MAC addr from EEPROM | 34 | * // Read MAC addr from EEPROM |
| 35 | * if (mem_acc->read(mem_acc, mac_addr, offset, ETH_ALEN) == ETH_ALEN) | 35 | * if (nvmem_device_read(nvmem, offset, ETH_ALEN, mac_addr) == ETH_ALEN) |
| 36 | * pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr); | 36 | * pr_info("Read MAC addr from EEPROM: %pM\n", mac_addr); |
| 37 | * } | 37 | * } |
| 38 | * | 38 | * |
| @@ -48,7 +48,7 @@ struct at24_platform_data { | |||
| 48 | #define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */ | 48 | #define AT24_FLAG_IRUGO 0x20 /* sysfs-entry will be world-readable */ |
| 49 | #define AT24_FLAG_TAKE8ADDR 0x10 /* take always 8 addresses (24c00) */ | 49 | #define AT24_FLAG_TAKE8ADDR 0x10 /* take always 8 addresses (24c00) */ |
| 50 | 50 | ||
| 51 | void (*setup)(struct memory_accessor *, void *context); | 51 | void (*setup)(struct nvmem_device *nvmem, void *context); |
| 52 | void *context; | 52 | void *context; |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
