Commit 6ea9ad24 authored by Dong, Chuanxiao's avatar Dong, Chuanxiao Committed by David Woodhouse

mtd: denali.h: fixed checkpatch errors

Fix all checkpatch.pl complaints.

Artem: tweaked a little and fix tab indentations, so now this is not
       only about checkpatch, but also about making indentations look
       sane.
Signed-off-by: default avatarChuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 1c3275b6
...@@ -647,15 +647,12 @@ struct device_info_tag { ...@@ -647,15 +647,12 @@ struct device_info_tag {
uint16_t wDeviceWidth; uint16_t wDeviceWidth;
uint16_t wHWRevision; uint16_t wHWRevision;
uint16_t wHWFeatures; uint16_t wHWFeatures;
uint16_t wONFIDevFeatures; uint16_t wONFIDevFeatures;
uint16_t wONFIOptCommands; uint16_t wONFIOptCommands;
uint16_t wONFITimingMode; uint16_t wONFITimingMode;
uint16_t wONFIPgmCacheTimingMode; uint16_t wONFIPgmCacheTimingMode;
uint16_t MLCDevice; uint16_t MLCDevice;
uint16_t wSpareSkipBytes; uint16_t wSpareSkipBytes;
uint8_t nBitsInPageNumber; uint8_t nBitsInPageNumber;
uint8_t nBitsInPageDataSize; uint8_t nBitsInPageDataSize;
uint8_t nBitsInBlockDataSize; uint8_t nBitsInBlockDataSize;
...@@ -772,10 +769,9 @@ struct device_info_tag { ...@@ -772,10 +769,9 @@ struct device_info_tag {
#define ECC_SECTOR_SIZE 512 #define ECC_SECTOR_SIZE 512
#define LLD_MAX_FLASH_BANKS 4 #define LLD_MAX_FLASH_BANKS 4
#define DENALI_BUF_SIZE NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE #define DENALI_BUF_SIZE (NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE)
struct nand_buf struct nand_buf {
{
int head; int head;
int tail; int tail;
uint8_t buf[DENALI_BUF_SIZE]; uint8_t buf[DENALI_BUF_SIZE];
...@@ -810,7 +806,7 @@ struct denali_nand_info { ...@@ -810,7 +806,7 @@ struct denali_nand_info {
static uint16_t NAND_Flash_Reset(struct denali_nand_info *denali); static uint16_t NAND_Flash_Reset(struct denali_nand_info *denali);
static uint16_t NAND_Read_Device_ID(struct denali_nand_info *denali); static uint16_t NAND_Read_Device_ID(struct denali_nand_info *denali);
static void NAND_LLD_Enable_Disable_Interrupts(struct denali_nand_info *denali, uint16_t INT_ENABLE); static void NAND_LLD_Enable_Disable_Interrupts(struct denali_nand_info *denali,
uint16_t INT_ENABLE);
#endif /*_LLD_NAND_*/ #endif /*_LLD_NAND_*/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment