diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-02-26 20:59:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-01 16:55:48 -0800 |
commit | bec3c11bad0e7ac05fb90f204d0ab6f79945822b (patch) | |
tree | 3d993a264e1a6067bc6aa5a3316e580b356de0c2 /include/linux/memory.h | |
parent | 1c4b6e2c7534b9b193f440f77dd47e420a150288 (diff) | |
download | lwn-bec3c11bad0e7ac05fb90f204d0ab6f79945822b.tar.gz lwn-bec3c11bad0e7ac05fb90f204d0ab6f79945822b.zip |
misc: at24: replace memory_accessor with nvmem_device_read
Now that the AT24 uses the NVMEM framework, replace the
memory_accessor in the setup() callback with nvmem API calls.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/memory.h')
-rw-r--r-- | include/linux/memory.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/memory.h b/include/linux/memory.h index 8b8d8d12348e..b723a686fc10 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -137,17 +137,6 @@ extern struct memory_block *find_memory_block(struct mem_section *); #endif /* - * 'struct memory_accessor' is a generic interface to provide - * in-kernel access to persistent memory such as i2c or SPI EEPROMs - */ -struct memory_accessor { - ssize_t (*read)(struct memory_accessor *, char *buf, off_t offset, - size_t count); - ssize_t (*write)(struct memory_accessor *, const char *buf, - off_t offset, size_t count); -}; - -/* * Kernel text modification mutex, used for code patching. Users of this lock * can sleep. */ |