Fixed a forgotten FAR, a typo, and an incorrect bit-field definition.
This commit is contained in:
parent
2465901038
commit
c0964a17b4
@ -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_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_ioctl(FAR struct qe_lowerhalf_s *lower, int cmd,
|
||||
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;
|
||||
uint16_t ang;
|
||||
|
@ -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 */
|
||||
|
||||
case SNIOC_WRITRETOS:
|
||||
case SNIOC_WRITETOS:
|
||||
ret = lm75_writeb16(priv, LM75_TOS_REG, (b16_t)arg);
|
||||
sndbg("TOS: %08x ret: %d\n", (b16_t)arg, ret);
|
||||
break;
|
||||
|
@ -130,7 +130,7 @@
|
||||
*/
|
||||
|
||||
#define AUDIO_TYPE_QUERY 0x00
|
||||
#define AUDIO_TYPE_INPUT 0x02
|
||||
#define AUDIO_TYPE_INPUT 0x01
|
||||
#define AUDIO_TYPE_OUTPUT 0x02
|
||||
#define AUDIO_TYPE_MIXER 0x04
|
||||
#define AUDIO_TYPE_SELECTOR 0x08
|
||||
|
@ -64,7 +64,7 @@
|
||||
#define SNIOC_READTHYS _SNIOC(0x0007) /* Arg: b16_t* pointer */
|
||||
#define SNIOC_WRITETHYS _SNIOC(0x0008) /* Arg: b16_t value */
|
||||
#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 Registers addresses */
|
||||
|
@ -102,7 +102,7 @@ struct qe_ops_s
|
||||
|
||||
/* 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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user