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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1c4b6e2c75
commit
bec3c11bad
@@ -12,7 +12,7 @@
|
||||
#define _LINUX_DAVINCI_EMAC_H
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/memory.h>
|
||||
#include <linux/nvmem-consumer.h>
|
||||
|
||||
struct mdio_platform_data {
|
||||
unsigned long bus_freq;
|
||||
@@ -46,5 +46,5 @@ enum {
|
||||
EMAC_VERSION_2, /* DM646x */
|
||||
};
|
||||
|
||||
void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context);
|
||||
void davinci_get_mac_addr(struct nvmem_device *nvmem, void *context);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user