diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-18 00:31:38 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-12-18 00:31:38 +0000 |
commit | 67726acd33c198facb95876df0cf5457afba1eda (patch) | |
tree | 1d100cb7ec0c440cc66c1e1d2dc5c6221853cdc5 /nuttx | |
parent | 390d0065bb8dd2e8ff252bff87941bc194889d0f (diff) | |
download | px4-nuttx-67726acd33c198facb95876df0cf5457afba1eda.tar.gz px4-nuttx-67726acd33c198facb95876df0cf5457afba1eda.tar.bz2 px4-nuttx-67726acd33c198facb95876df0cf5457afba1eda.zip |
typos
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3192 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/drivers/usbdev/usbdev_scsi.c | 10 | ||||
-rw-r--r-- | nuttx/include/nuttx/scsi.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/drivers/usbdev/usbdev_scsi.c b/nuttx/drivers/usbdev/usbdev_scsi.c index 4b0a3862d..c35a50183 100644 --- a/nuttx/drivers/usbdev/usbdev_scsi.c +++ b/nuttx/drivers/usbdev/usbdev_scsi.c @@ -742,13 +742,13 @@ static int inline usbstrg_cmdmodesense6(FAR struct usbstrg_dev_s *priv, /* There are no block descriptors, only the following mode page: */ - ret = usbstrg_modepage(priv, &buf[SCSIREP_MODEPARAMETERHDR6_SIZEOF], modesense->pcpgcode, &mdlen); + ret = usbstrg_modepage(priv, &buf[SCSIRESP_MODEPARAMETERHDR6_SIZEOF], modesense->pcpgcode, &mdlen); if (ret == OK) { /* Store the mode data length and return the total message size */ mph->mdlen = mdlen - 1; - priv->nreqbytes = mdlen + SCSIREP_MODEPARAMETERHDR6_SIZEOF; + priv->nreqbytes = mdlen + SCSIRESP_MODEPARAMETERHDR6_SIZEOF; } } } @@ -1187,18 +1187,18 @@ static int inline usbstrg_cmdmodesense10(FAR struct usbstrg_dev_s *priv, * (3) A variable lengtth list of mode page formats */ - memset(mph, 0, SCSIREP_MODEPARAMETERHDR10_SIZEOF); + memset(mph, 0, SCSIRESP_MODEPARAMETERHDR10_SIZEOF); mph->param = (priv->lun->readonly ? SCSIRESP_MODEPARMHDR_DAPARM_WP : 0x00); /* There are no block descriptors, only the following mode page: */ - ret = usbstrg_modepage(priv, &buf[SCSIREP_MODEPARAMETERHDR10_SIZEOF], modesense->pcpgcode, &mdlen); + ret = usbstrg_modepage(priv, &buf[SCSIRESP_MODEPARAMETERHDR10_SIZEOF], modesense->pcpgcode, &mdlen); if (ret == OK) { /* Store the mode data length and return the total message size */ usbstrg_putbe16(mph->mdlen, mdlen - 2); - priv->nreqbytes = mdlen + SCSIREP_MODEPARAMETERHDR10_SIZEOF; + priv->nreqbytes = mdlen + SCSIRESP_MODEPARAMETERHDR10_SIZEOF; } } } diff --git a/nuttx/include/nuttx/scsi.h b/nuttx/include/nuttx/scsi.h index ac8cd5a03..f253494cd 100644 --- a/nuttx/include/nuttx/scsi.h +++ b/nuttx/include/nuttx/scsi.h @@ -735,7 +735,7 @@ struct scsiresp_modeparameterhdr6_s uint8_t param; /* 2: Device-specific parameter */ uint8_t bdlen; /* 3: Block descriptor length */ }; -#define SCSIREP_MODEPARAMETERHDR6_SIZEOF 4 +#define SCSIRESP_MODEPARAMETERHDR6_SIZEOF 4 struct scsiresp_blockdesc_s { @@ -744,7 +744,7 @@ struct scsiresp_blockdesc_s uint8_t reserved; /* 4: reserved */ uint8_t blklen[3]; /* 5-7: Block len */ }; -#define SCSIREP_BLOCKDESC_SIZEOF 8 +#define SCSIRESP_BLOCKDESC_SIZEOF 8 struct scsiresp_pageformat_s { @@ -933,7 +933,7 @@ struct scsiresp_modeparameterhdr10_s uint8_t reserved[2]; /* 4-5: reserved */ uint8_t bdlen[2]; /* 6-7: Block descriptor length */ }; -#define SCSIREP_MODEPARAMETERHDR10_SIZEOF 8 +#define SCSIRESP_MODEPARAMETERHDR10_SIZEOF 8 struct scsicmd_modesense10_s { |