drivers/mmcsd: fix style issues
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
1e86682feb
commit
8254b374dd
@ -183,13 +183,16 @@ static ssize_t mmcsd_readsingle(FAR struct mmcsd_state_s *priv,
|
||||
FAR uint8_t *buffer, off_t startblock);
|
||||
#if MMCSD_MULTIBLOCK_LIMIT != 1
|
||||
static ssize_t mmcsd_readmultiple(FAR struct mmcsd_state_s *priv,
|
||||
FAR uint8_t *buffer, off_t startblock, size_t nblocks);
|
||||
FAR uint8_t *buffer, off_t startblock,
|
||||
size_t nblocks);
|
||||
#endif
|
||||
static ssize_t mmcsd_writesingle(FAR struct mmcsd_state_s *priv,
|
||||
FAR const uint8_t *buffer, off_t startblock);
|
||||
FAR const uint8_t *buffer,
|
||||
off_t startblock);
|
||||
#if MMCSD_MULTIBLOCK_LIMIT != 1
|
||||
static ssize_t mmcsd_writemultiple(FAR struct mmcsd_state_s *priv,
|
||||
FAR const uint8_t *buffer, off_t startblock,
|
||||
FAR const uint8_t *buffer,
|
||||
off_t startblock,
|
||||
size_t nblocks);
|
||||
#endif
|
||||
|
||||
@ -200,7 +203,8 @@ static int mmcsd_close(FAR struct inode *inode);
|
||||
static ssize_t mmcsd_read(FAR struct inode *inode, FAR unsigned char *buffer,
|
||||
blkcnt_t startsector, unsigned int nsectors);
|
||||
static ssize_t mmcsd_write(FAR struct inode *inode,
|
||||
FAR const unsigned char *buffer, blkcnt_t startsector,
|
||||
FAR const unsigned char *buffer,
|
||||
blkcnt_t startsector,
|
||||
unsigned int nsectors);
|
||||
static int mmcsd_geometry(FAR struct inode *inode,
|
||||
FAR struct geometry *geometry);
|
||||
@ -2545,11 +2549,9 @@ static int mmcsd_widebus(FAR struct mmcsd_state_s *priv)
|
||||
* Configuring MMC - Use MMC_SWITCH access modes.
|
||||
*/
|
||||
|
||||
uint32_t arg = MMCSD_CMD6_MODE_WRITE_BYTE | MMCSD_CMD6_BUSWIDTH_RW;
|
||||
|
||||
arg |= MMCSD_CMD6_BUS_WIDTH_4;
|
||||
|
||||
mmcsd_sendcmdpoll(priv, MMCSD_CMD6, arg);
|
||||
mmcsd_sendcmdpoll(priv, MMCSD_CMD6,
|
||||
MMCSD_CMD6_MODE_WRITE_BYTE | MMCSD_CMD6_BUSWIDTH_RW |
|
||||
MMCSD_CMD6_BUS_WIDTH_4);
|
||||
ret = mmcsd_recv_r1(priv, MMCSD_CMD6);
|
||||
|
||||
if (ret != OK)
|
||||
@ -2690,7 +2692,7 @@ static int mmcsd_mmcinitialize(FAR struct mmcsd_state_s *priv)
|
||||
* extended CSD register.
|
||||
*/
|
||||
|
||||
mmcsd_sendcmdpoll(priv, MMCSD_CMD9, (uint32_t) priv->rca << 16);
|
||||
mmcsd_sendcmdpoll(priv, MMCSD_CMD9, (uint32_t)priv->rca << 16);
|
||||
ret = SDIO_RECVR2(priv->dev, MMCSD_CMD9, csd);
|
||||
if (ret != OK)
|
||||
{
|
||||
@ -3497,8 +3499,8 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)
|
||||
|
||||
if (ret != OK)
|
||||
{
|
||||
fwarn("WARNING: CMD1 RECVR3: %d. \
|
||||
NOTE: This is expected for SD cards.\n", ret);
|
||||
fwarn("WARNING: CMD1 RECVR3: %d. "
|
||||
"NOTE: This is expected for SD cards.\n", ret);
|
||||
|
||||
/* CMD1 did not succeed, card is not MMC. Return to idle
|
||||
* to allow the communication to recover before another send.
|
||||
|
Loading…
Reference in New Issue
Block a user