~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/linux/of_mtd.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#define __LINUX_OF_NET_H
11
11
 
12
12
#ifdef CONFIG_OF_MTD
 
13
 
13
14
#include <linux/of.h>
14
15
int of_get_nand_ecc_mode(struct device_node *np);
15
16
int of_get_nand_bus_width(struct device_node *np);
16
17
bool of_get_nand_on_flash_bbt(struct device_node *np);
17
 
#endif
 
18
 
 
19
#else /* CONFIG_OF_MTD */
 
20
 
 
21
static inline int of_get_nand_ecc_mode(struct device_node *np)
 
22
{
 
23
        return -ENOSYS;
 
24
}
 
25
 
 
26
static inline int of_get_nand_bus_width(struct device_node *np)
 
27
{
 
28
        return -ENOSYS;
 
29
}
 
30
 
 
31
static inline bool of_get_nand_on_flash_bbt(struct device_node *np)
 
32
{
 
33
        return false;
 
34
}
 
35
 
 
36
#endif /* CONFIG_OF_MTD */
18
37
 
19
38
#endif /* __LINUX_OF_MTD_H */