Fixed a forgotten FAR, a typo, and an incorrect bit-field definition.

This commit is contained in:
Paul A. Patience
2015-08-10 14:40:36 -04:00
parent 2465901038
commit c0964a17b4
5 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -88,7 +88,8 @@ static int as5048b_readang(FAR struct as5048b_dev_s *priv, FAR uint16_t *ang);
static int as5048b_setup(FAR struct qe_lowerhalf_s *lower); static int as5048b_setup(FAR struct qe_lowerhalf_s *lower);
static int as5048b_shutdown(FAR struct qe_lowerhalf_s *lower); static int as5048b_shutdown(FAR struct qe_lowerhalf_s *lower);
static int as5048b_position(FAR struct qe_lowerhalf_s *lower, int32_t *pos); static int as5048b_position(FAR struct qe_lowerhalf_s *lower,
FAR int32_t *pos);
static int as5048b_reset(FAR struct qe_lowerhalf_s *lower); static int as5048b_reset(FAR struct qe_lowerhalf_s *lower);
static int as5048b_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd, static int as5048b_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd,
unsigned long arg); unsigned long arg);
@@ -426,7 +427,8 @@ static int as5048b_shutdown(FAR struct qe_lowerhalf_s *lower)
* *
****************************************************************************/ ****************************************************************************/
static int as5048b_position(FAR struct qe_lowerhalf_s *lower, int32_t *pos) static int as5048b_position(FAR struct qe_lowerhalf_s *lower,
FAR int32_t *pos)
{ {
FAR struct as5048b_dev_s *priv = (FAR struct as5048b_dev_s *)lower; FAR struct as5048b_dev_s *priv = (FAR struct as5048b_dev_s *)lower;
uint16_t ang; uint16_t ang;
+1 -1
View File
@@ -462,7 +462,7 @@ static int lm75_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
/* Write TOS (Over-temp Shutdown Threshold) Register. Arg: b16_t value */ /* Write TOS (Over-temp Shutdown Threshold) Register. Arg: b16_t value */
case SNIOC_WRITRETOS: case SNIOC_WRITETOS:
ret = lm75_writeb16(priv, LM75_TOS_REG, (b16_t)arg); ret = lm75_writeb16(priv, LM75_TOS_REG, (b16_t)arg);
sndbg("TOS: %08x ret: %d\n", (b16_t)arg, ret); sndbg("TOS: %08x ret: %d\n", (b16_t)arg, ret);
break; break;
+1 -1
View File
@@ -130,7 +130,7 @@
*/ */
#define AUDIO_TYPE_QUERY 0x00 #define AUDIO_TYPE_QUERY 0x00
#define AUDIO_TYPE_INPUT 0x02 #define AUDIO_TYPE_INPUT 0x01
#define AUDIO_TYPE_OUTPUT 0x02 #define AUDIO_TYPE_OUTPUT 0x02
#define AUDIO_TYPE_MIXER 0x04 #define AUDIO_TYPE_MIXER 0x04
#define AUDIO_TYPE_SELECTOR 0x08 #define AUDIO_TYPE_SELECTOR 0x08
+1 -1
View File
@@ -64,7 +64,7 @@
#define SNIOC_READTHYS _SNIOC(0x0007) /* Arg: b16_t* pointer */ #define SNIOC_READTHYS _SNIOC(0x0007) /* Arg: b16_t* pointer */
#define SNIOC_WRITETHYS _SNIOC(0x0008) /* Arg: b16_t value */ #define SNIOC_WRITETHYS _SNIOC(0x0008) /* Arg: b16_t value */
#define SNIOC_READTOS _SNIOC(0x0009) /* Arg: b16_t* pointer */ #define SNIOC_READTOS _SNIOC(0x0009) /* Arg: b16_t* pointer */
#define SNIOC_WRITRETOS _SNIOC(0x000a) /* Arg: b16_t value */ #define SNIOC_WRITETOS _SNIOC(0x000a) /* Arg: b16_t value */
/* LM-75 Register Definitions ***********************************************/ /* LM-75 Register Definitions ***********************************************/
/* LM-75 Registers addresses */ /* LM-75 Registers addresses */
+1 -1
View File
@@ -102,7 +102,7 @@ struct qe_ops_s
/* Return the current position measurement. */ /* Return the current position measurement. */
CODE int (*position)(FAR struct qe_lowerhalf_s *lower, int32_t *pos); CODE int (*position)(FAR struct qe_lowerhalf_s *lower, FAR int32_t *pos);
/* Reset the position measurement to zero. */ /* Reset the position measurement to zero. */