Merge tag 'spi-fix-v4.19-rc4' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6/btrfs-unstable.git] / include / linux / sram.h
blob4fb405fb0480cf3fbbdfe3ba969bd62876c8ed7d
1 /*
2 * Generic SRAM Driver Interface
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 #ifndef __LINUX_SRAM_H__
14 #define __LINUX_SRAM_H__
16 struct gen_pool;
18 #ifdef CONFIG_SRAM_EXEC
19 void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src, size_t size);
20 #else
21 static inline void *sram_exec_copy(struct gen_pool *pool, void *dst, void *src,
22 size_t size)
24 return NULL;
26 #endif /* CONFIG_SRAM_EXEC */
27 #endif /* __LINUX_SRAM_H__ */