| .. | .. |
|---|
| 36 | 36 | void ingenic_ecc_release(struct ingenic_ecc *ecc); |
|---|
| 37 | 37 | struct ingenic_ecc *of_ingenic_ecc_get(struct device_node *np); |
|---|
| 38 | 38 | #else /* CONFIG_MTD_NAND_INGENIC_ECC */ |
|---|
| 39 | | -int ingenic_ecc_calculate(struct ingenic_ecc *ecc, |
|---|
| 39 | +static inline int ingenic_ecc_calculate(struct ingenic_ecc *ecc, |
|---|
| 40 | 40 | struct ingenic_ecc_params *params, |
|---|
| 41 | 41 | const u8 *buf, u8 *ecc_code) |
|---|
| 42 | 42 | { |
|---|
| 43 | 43 | return -ENODEV; |
|---|
| 44 | 44 | } |
|---|
| 45 | 45 | |
|---|
| 46 | | -int ingenic_ecc_correct(struct ingenic_ecc *ecc, |
|---|
| 46 | +static inline int ingenic_ecc_correct(struct ingenic_ecc *ecc, |
|---|
| 47 | 47 | struct ingenic_ecc_params *params, u8 *buf, |
|---|
| 48 | 48 | u8 *ecc_code) |
|---|
| 49 | 49 | { |
|---|
| 50 | 50 | return -ENODEV; |
|---|
| 51 | 51 | } |
|---|
| 52 | 52 | |
|---|
| 53 | | -void ingenic_ecc_release(struct ingenic_ecc *ecc) |
|---|
| 53 | +static inline void ingenic_ecc_release(struct ingenic_ecc *ecc) |
|---|
| 54 | 54 | { |
|---|
| 55 | 55 | } |
|---|
| 56 | 56 | |
|---|
| 57 | | -struct ingenic_ecc *of_ingenic_ecc_get(struct device_node *np) |
|---|
| 57 | +static inline struct ingenic_ecc *of_ingenic_ecc_get(struct device_node *np) |
|---|
| 58 | 58 | { |
|---|
| 59 | 59 | return ERR_PTR(-ENODEV); |
|---|
| 60 | 60 | } |
|---|