mtd: nand: remove unnecessary extern from driver headers
'extern' is not necessary for function declarations. scripts/checkpatch.pl with --strict option reports the following: CHECK: extern prototypes should be avoided in .h files Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
This commit is contained in:
parent
bccb06c353
commit
c9e916a4b4
|
@ -329,7 +329,7 @@ struct denali_nand_info {
|
|||
#define DENALI_CAP_DMA_64BIT BIT(1)
|
||||
|
||||
int denali_calc_ecc_bytes(int step_size, int strength);
|
||||
extern int denali_init(struct denali_nand_info *denali);
|
||||
extern void denali_remove(struct denali_nand_info *denali);
|
||||
int denali_init(struct denali_nand_info *denali);
|
||||
void denali_remove(struct denali_nand_info *denali);
|
||||
|
||||
#endif /* __DENALI_H__ */
|
||||
|
|
|
@ -268,30 +268,30 @@ struct timing_threshold {
|
|||
};
|
||||
|
||||
/* Common Services */
|
||||
extern int common_nfc_set_geometry(struct gpmi_nand_data *);
|
||||
extern struct dma_chan *get_dma_chan(struct gpmi_nand_data *);
|
||||
extern void prepare_data_dma(struct gpmi_nand_data *,
|
||||
int common_nfc_set_geometry(struct gpmi_nand_data *);
|
||||
struct dma_chan *get_dma_chan(struct gpmi_nand_data *);
|
||||
void prepare_data_dma(struct gpmi_nand_data *,
|
||||
enum dma_data_direction dr);
|
||||
extern int start_dma_without_bch_irq(struct gpmi_nand_data *,
|
||||
int start_dma_without_bch_irq(struct gpmi_nand_data *,
|
||||
struct dma_async_tx_descriptor *);
|
||||
extern int start_dma_with_bch_irq(struct gpmi_nand_data *,
|
||||
int start_dma_with_bch_irq(struct gpmi_nand_data *,
|
||||
struct dma_async_tx_descriptor *);
|
||||
|
||||
/* GPMI-NAND helper function library */
|
||||
extern int gpmi_init(struct gpmi_nand_data *);
|
||||
extern int gpmi_extra_init(struct gpmi_nand_data *);
|
||||
extern void gpmi_clear_bch(struct gpmi_nand_data *);
|
||||
extern void gpmi_dump_info(struct gpmi_nand_data *);
|
||||
extern int bch_set_geometry(struct gpmi_nand_data *);
|
||||
extern int gpmi_is_ready(struct gpmi_nand_data *, unsigned chip);
|
||||
extern int gpmi_send_command(struct gpmi_nand_data *);
|
||||
extern void gpmi_begin(struct gpmi_nand_data *);
|
||||
extern void gpmi_end(struct gpmi_nand_data *);
|
||||
extern int gpmi_read_data(struct gpmi_nand_data *);
|
||||
extern int gpmi_send_data(struct gpmi_nand_data *);
|
||||
extern int gpmi_send_page(struct gpmi_nand_data *,
|
||||
int gpmi_init(struct gpmi_nand_data *);
|
||||
int gpmi_extra_init(struct gpmi_nand_data *);
|
||||
void gpmi_clear_bch(struct gpmi_nand_data *);
|
||||
void gpmi_dump_info(struct gpmi_nand_data *);
|
||||
int bch_set_geometry(struct gpmi_nand_data *);
|
||||
int gpmi_is_ready(struct gpmi_nand_data *, unsigned chip);
|
||||
int gpmi_send_command(struct gpmi_nand_data *);
|
||||
void gpmi_begin(struct gpmi_nand_data *);
|
||||
void gpmi_end(struct gpmi_nand_data *);
|
||||
int gpmi_read_data(struct gpmi_nand_data *);
|
||||
int gpmi_send_data(struct gpmi_nand_data *);
|
||||
int gpmi_send_page(struct gpmi_nand_data *,
|
||||
dma_addr_t payload, dma_addr_t auxiliary);
|
||||
extern int gpmi_read_page(struct gpmi_nand_data *,
|
||||
int gpmi_read_page(struct gpmi_nand_data *,
|
||||
dma_addr_t payload, dma_addr_t auxiliary);
|
||||
|
||||
void gpmi_copy_bits(u8 *dst, size_t dst_bit_off,
|
||||
|
|
|
@ -36,7 +36,7 @@ struct sm_oob {
|
|||
#define SM_SMALL_OOB_SIZE 8
|
||||
|
||||
|
||||
extern int sm_register_device(struct mtd_info *mtd, int smartmedia);
|
||||
int sm_register_device(struct mtd_info *mtd, int smartmedia);
|
||||
|
||||
|
||||
static inline int sm_sector_valid(struct sm_oob *oob)
|
||||
|
|
Loading…
Reference in New Issue