diff options
author | Chuanxiao Dong <chuanxiao.dong@intel.com> | 2010-08-11 05:46:00 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-08-12 06:10:36 -0400 |
commit | b292c341e2304b1d937843711c63d1e141d7b589 (patch) | |
tree | 1f408aeb08f4045c71d0ca2294f242320a0207b3 | |
parent | ef077179a2909d3d0d3accf29ad1ea9ebb19019b (diff) |
nand/denali: Fixed check patch warnings
waring: no space for starting a line
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/mtd/nand/denali.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index f59dd03f36d4..3ba89525cf07 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c | |||
@@ -56,7 +56,7 @@ MODULE_PARM_DESC(onfi_timing_mode, "Overrides default ONFI setting." | |||
56 | INTR_STATUS0__ERASE_COMP) | 56 | INTR_STATUS0__ERASE_COMP) |
57 | 57 | ||
58 | /* indicates whether or not the internal value for the flash bank is | 58 | /* indicates whether or not the internal value for the flash bank is |
59 | valid or not */ | 59 | * valid or not */ |
60 | #define CHIP_SELECT_INVALID -1 | 60 | #define CHIP_SELECT_INVALID -1 |
61 | 61 | ||
62 | #define SUPPORT_8BITECC 1 | 62 | #define SUPPORT_8BITECC 1 |
@@ -71,7 +71,7 @@ MODULE_PARM_DESC(onfi_timing_mode, "Overrides default ONFI setting." | |||
71 | #define mtd_to_denali(m) container_of(m, struct denali_nand_info, mtd) | 71 | #define mtd_to_denali(m) container_of(m, struct denali_nand_info, mtd) |
72 | 72 | ||
73 | /* These constants are defined by the driver to enable common driver | 73 | /* These constants are defined by the driver to enable common driver |
74 | configuration options. */ | 74 | * configuration options. */ |
75 | #define SPARE_ACCESS 0x41 | 75 | #define SPARE_ACCESS 0x41 |
76 | #define MAIN_ACCESS 0x42 | 76 | #define MAIN_ACCESS 0x42 |
77 | #define MAIN_SPARE_ACCESS 0x43 | 77 | #define MAIN_SPARE_ACCESS 0x43 |
@@ -97,7 +97,7 @@ static const struct pci_device_id denali_pci_ids[] = { | |||
97 | 97 | ||
98 | 98 | ||
99 | /* these are static lookup tables that give us easy access to | 99 | /* these are static lookup tables that give us easy access to |
100 | registers in the NAND controller. | 100 | * registers in the NAND controller. |
101 | */ | 101 | */ |
102 | static const uint32_t intr_status_addresses[4] = {INTR_STATUS0, | 102 | static const uint32_t intr_status_addresses[4] = {INTR_STATUS0, |
103 | INTR_STATUS1, | 103 | INTR_STATUS1, |
@@ -429,7 +429,7 @@ static void get_hynix_nand_para(struct denali_nand_info *denali, | |||
429 | } | 429 | } |
430 | 430 | ||
431 | /* determines how many NAND chips are connected to the controller. Note for | 431 | /* determines how many NAND chips are connected to the controller. Note for |
432 | Intel CE4100 devices we don't support more than one device. | 432 | * Intel CE4100 devices we don't support more than one device. |
433 | */ | 433 | */ |
434 | static void find_valid_banks(struct denali_nand_info *denali) | 434 | static void find_valid_banks(struct denali_nand_info *denali) |
435 | { | 435 | { |
@@ -572,7 +572,7 @@ static void denali_set_intr_modes(struct denali_nand_info *denali, | |||
572 | } | 572 | } |
573 | 573 | ||
574 | /* validation function to verify that the controlling software is making | 574 | /* validation function to verify that the controlling software is making |
575 | a valid request | 575 | * a valid request |
576 | */ | 576 | */ |
577 | static inline bool is_flash_bank_valid(int flash_bank) | 577 | static inline bool is_flash_bank_valid(int flash_bank) |
578 | { | 578 | { |
@@ -726,7 +726,7 @@ static uint32_t wait_for_irq(struct denali_nand_info *denali, uint32_t irq_mask) | |||
726 | } | 726 | } |
727 | 727 | ||
728 | /* This helper function setups the registers for ECC and whether or not | 728 | /* This helper function setups the registers for ECC and whether or not |
729 | the spare area will be transfered. */ | 729 | * the spare area will be transfered. */ |
730 | static void setup_ecc_for_xfer(struct denali_nand_info *denali, bool ecc_en, | 730 | static void setup_ecc_for_xfer(struct denali_nand_info *denali, bool ecc_en, |
731 | bool transfer_spare) | 731 | bool transfer_spare) |
732 | { | 732 | { |
@@ -743,7 +743,7 @@ static void setup_ecc_for_xfer(struct denali_nand_info *denali, bool ecc_en, | |||
743 | } | 743 | } |
744 | 744 | ||
745 | /* sends a pipeline command operation to the controller. See the Denali NAND | 745 | /* sends a pipeline command operation to the controller. See the Denali NAND |
746 | controller's user guide for more information (section 4.2.3.6). | 746 | * controller's user guide for more information (section 4.2.3.6). |
747 | */ | 747 | */ |
748 | static int denali_send_pipeline_cmd(struct denali_nand_info *denali, | 748 | static int denali_send_pipeline_cmd(struct denali_nand_info *denali, |
749 | bool ecc_en, | 749 | bool ecc_en, |
@@ -1042,7 +1042,7 @@ static void denali_setup_dma(struct denali_nand_info *denali, int op) | |||
1042 | } | 1042 | } |
1043 | 1043 | ||
1044 | /* writes a page. user specifies type, and this function handles the | 1044 | /* writes a page. user specifies type, and this function handles the |
1045 | configuration details. */ | 1045 | * configuration details. */ |
1046 | static void write_page(struct mtd_info *mtd, struct nand_chip *chip, | 1046 | static void write_page(struct mtd_info *mtd, struct nand_chip *chip, |
1047 | const uint8_t *buf, bool raw_xfer) | 1047 | const uint8_t *buf, bool raw_xfer) |
1048 | { | 1048 | { |
@@ -1099,8 +1099,9 @@ static void write_page(struct mtd_info *mtd, struct nand_chip *chip, | |||
1099 | /* NAND core entry points */ | 1099 | /* NAND core entry points */ |
1100 | 1100 | ||
1101 | /* this is the callback that the NAND core calls to write a page. Since | 1101 | /* this is the callback that the NAND core calls to write a page. Since |
1102 | writing a page with ECC or without is similar, all the work is done | 1102 | * writing a page with ECC or without is similar, all the work is done |
1103 | by write_page above. */ | 1103 | * by write_page above. |
1104 | * */ | ||
1104 | static void denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, | 1105 | static void denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, |
1105 | const uint8_t *buf) | 1106 | const uint8_t *buf) |
1106 | { | 1107 | { |
@@ -1110,8 +1111,8 @@ static void denali_write_page(struct mtd_info *mtd, struct nand_chip *chip, | |||
1110 | } | 1111 | } |
1111 | 1112 | ||
1112 | /* This is the callback that the NAND core calls to write a page without ECC. | 1113 | /* This is the callback that the NAND core calls to write a page without ECC. |
1113 | raw access is similiar to ECC page writes, so all the work is done in the | 1114 | * raw access is similiar to ECC page writes, so all the work is done in the |
1114 | write_page() function above. | 1115 | * write_page() function above. |
1115 | */ | 1116 | */ |
1116 | static void denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, | 1117 | static void denali_write_page_raw(struct mtd_info *mtd, struct nand_chip *chip, |
1117 | const uint8_t *buf) | 1118 | const uint8_t *buf) |