Correct the code alignment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f987668068
commit
4c167b0729
@ -1182,7 +1182,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -1007,7 +1007,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -600,7 +600,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -476,7 +476,7 @@ static ssize_t charger_write(FAR struct file *filep,
|
||||
static int charger_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct charger_dev_s *priv = inode->i_private;
|
||||
FAR struct charger_dev_s *priv = inode->i_private;
|
||||
int ret = -ENOTTY;
|
||||
|
||||
nxsem_wait_uninterruptible(&priv->batsem);
|
||||
|
@ -304,7 +304,7 @@ static ssize_t gauge_write(FAR struct file *filep,
|
||||
static int gauge_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct bat_gauge_dev_s *priv = inode->i_private;
|
||||
FAR struct bat_gauge_dev_s *priv = inode->i_private;
|
||||
int ret = -ENOTTY;
|
||||
|
||||
nxsem_wait_uninterruptible(&priv->batsem);
|
||||
|
@ -740,7 +740,7 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct uart_dev_s *dev = inode->i_private;
|
||||
FAR struct up_dev_s *priv = (FAR struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -522,7 +522,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -842,7 +842,7 @@ static inline void efm32_chan_freeall(FAR struct efm32_usbhost_s *priv)
|
||||
|
||||
/* Free all host channels */
|
||||
|
||||
for (chidx = 2; chidx < EFM32_NHOST_CHANNELS; chidx ++)
|
||||
for (chidx = 2; chidx < EFM32_NHOST_CHANNELS; chidx++)
|
||||
{
|
||||
efm32_chan_free(priv, chidx);
|
||||
}
|
||||
@ -4689,7 +4689,7 @@ static ssize_t efm32_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
usbhost_ep_t ep, FAR uint8_t *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct efm32_usbhost_s *priv = (FAR struct efm32_usbhost_s *)drvr;
|
||||
FAR struct efm32_usbhost_s *priv = (FAR struct efm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
int ret;
|
||||
@ -4762,7 +4762,7 @@ static int efm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct efm32_usbhost_s *priv = (FAR struct efm32_usbhost_s *)drvr;
|
||||
FAR struct efm32_usbhost_s *priv = (FAR struct efm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
int ret;
|
||||
|
||||
@ -4815,7 +4815,7 @@ static int efm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int efm32_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct efm32_usbhost_s *priv = (FAR struct efm32_usbhost_s *)drvr;
|
||||
FAR struct efm32_usbhost_s *priv = (FAR struct efm32_usbhost_s *)drvr;
|
||||
FAR struct efm32_chan_s *chan;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -1312,7 +1312,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -551,7 +551,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -1014,7 +1014,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
struct inode *inode = filep->f_inode;
|
||||
struct uart_dev_s *dev = inode->i_private;
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -650,7 +650,7 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct uart_dev_s *dev = inode->i_private;
|
||||
FAR struct up_dev_s *priv = (FAR struct up_dev_s *)dev->priv;
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -921,7 +921,7 @@ static ssize_t sam_tsd_read(struct file *filep, char *buffer, size_t len)
|
||||
inode = filep->f_inode;
|
||||
|
||||
DEBUGASSERT(inode && inode->i_private);
|
||||
priv = (struct sam_tsd_s *)inode->i_private;
|
||||
priv = (struct sam_tsd_s *)inode->i_private;
|
||||
|
||||
/* Verify that the caller has provided a buffer large enough to receive
|
||||
* the touch data.
|
||||
@ -1043,7 +1043,7 @@ static int sam_tsd_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
inode = filep->f_inode;
|
||||
|
||||
DEBUGASSERT(inode && inode->i_private);
|
||||
priv = (struct sam_tsd_s *)inode->i_private;
|
||||
priv = (struct sam_tsd_s *)inode->i_private;
|
||||
|
||||
/* Get exclusive access to the driver data structure */
|
||||
|
||||
@ -1078,7 +1078,7 @@ static int sam_tsd_poll(struct file *filep, struct pollfd *fds, bool setup)
|
||||
inode = filep->f_inode;
|
||||
|
||||
DEBUGASSERT(inode && inode->i_private);
|
||||
priv = (struct sam_tsd_s *)inode->i_private;
|
||||
priv = (struct sam_tsd_s *)inode->i_private;
|
||||
|
||||
/* Get exclusive access to the ADC hardware */
|
||||
|
||||
@ -1194,7 +1194,7 @@ static void sam_tsd_startuptime(struct sam_tsd_s *priv, uint32_t time)
|
||||
startup /= 10;
|
||||
if (startup)
|
||||
{
|
||||
startup --;
|
||||
startup--;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1318,7 +1318,7 @@ static void sam_tsd_tracking(struct sam_tsd_s *priv, uint32_t time)
|
||||
tracktim /= 10;
|
||||
if (tracktim)
|
||||
{
|
||||
tracktim --;
|
||||
tracktim--;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7610,7 +7610,7 @@ static ssize_t sam_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
FAR uint8_t *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct sam_usbhost_s *priv = (FAR struct sam_usbhost_s *)drvr;
|
||||
FAR struct sam_usbhost_s *priv = (FAR struct sam_usbhost_s *)drvr;
|
||||
FAR struct sam_pipe_s *pipe;
|
||||
unsigned int idx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
@ -7682,7 +7682,7 @@ static int sam_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct sam_usbhost_s *priv = (FAR struct sam_usbhost_s *)drvr;
|
||||
FAR struct sam_usbhost_s *priv = (FAR struct sam_usbhost_s *)drvr;
|
||||
FAR struct sam_pipe_s *pipe;
|
||||
unsigned int idx = (unsigned int)ep;
|
||||
int ret;
|
||||
@ -7735,7 +7735,7 @@ static int sam_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int sam_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct sam_usbhost_s *priv = (FAR struct sam_usbhost_s *)drvr;
|
||||
FAR struct sam_usbhost_s *priv = (FAR struct sam_usbhost_s *)drvr;
|
||||
FAR struct sam_pipe_s *pipe;
|
||||
unsigned int idx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -1638,7 +1638,7 @@ static int stm32_foc_adc_handler(int irq, FAR void *context, FAR void *arg)
|
||||
|
||||
if (dev != NULL)
|
||||
{
|
||||
priv = STM32_FOC_PRIV_FROM_DEV_GET(dev);
|
||||
priv = STM32_FOC_PRIV_FROM_DEV_GET(dev);
|
||||
DEBUGASSERT(priv);
|
||||
|
||||
foc_dev = STM32_FOC_DEV_FROM_DEV_GET(dev);
|
||||
|
@ -763,7 +763,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
||||
|
||||
/* Free all host channels */
|
||||
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||
{
|
||||
stm32_chan_free(priv, chidx);
|
||||
}
|
||||
@ -4713,7 +4713,7 @@ static ssize_t stm32_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
int ret;
|
||||
@ -4786,7 +4786,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
int ret;
|
||||
|
||||
@ -4839,7 +4839,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int stm32_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_chan_s *chan;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -768,7 +768,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
||||
|
||||
/* Free all host channels */
|
||||
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||
{
|
||||
stm32_chan_free(priv, chidx);
|
||||
}
|
||||
@ -4714,7 +4714,7 @@ static ssize_t stm32_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
int ret;
|
||||
@ -4787,7 +4787,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
int ret;
|
||||
|
||||
@ -4840,7 +4840,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int stm32_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_chan_s *chan;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -2229,7 +2229,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
#if defined(CONFIG_SERIAL_TERMIOS) || defined(CONFIG_STM32_SERIALBRK_BSDCOMPAT)
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
#endif
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -1128,7 +1128,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|| defined(CONFIG_STM32F0L0G0_SERIALBRK_BSDCOMPAT)
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
#endif
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -757,7 +757,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
||||
|
||||
/* Free all host channels */
|
||||
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||
{
|
||||
stm32_chan_free(priv, chidx);
|
||||
}
|
||||
@ -4683,7 +4683,7 @@ static ssize_t stm32_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
usbhost_ep_t ep, FAR uint8_t *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
|
||||
@ -4755,7 +4755,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
int ret;
|
||||
|
||||
@ -4808,7 +4808,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int stm32_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_chan_s *chan;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -2391,7 +2391,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
#if defined(CONFIG_SERIAL_TERMIOS) || defined(CONFIG_STM32F7_SERIALBRK_BSDCOMPAT)
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
#endif
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -760,7 +760,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
|
||||
|
||||
/* Free all host channels */
|
||||
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++)
|
||||
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
|
||||
{
|
||||
stm32_chan_free(priv, chidx);
|
||||
}
|
||||
@ -4691,7 +4691,7 @@ static ssize_t stm32_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
usbhost_ep_t ep, FAR uint8_t *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
int ret;
|
||||
@ -4764,7 +4764,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
int ret;
|
||||
|
||||
@ -4817,7 +4817,7 @@ static int stm32_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int stm32_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_usbhost_s *priv = (FAR struct stm32_usbhost_s *)drvr;
|
||||
FAR struct stm32_chan_s *chan;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -2587,7 +2587,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|| defined(CONFIG_STM32H7_SERIALBRK_BSDCOMPAT)
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
#endif
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -768,7 +768,7 @@ static inline void stm32l4_chan_freeall(FAR struct stm32l4_usbhost_s *priv)
|
||||
|
||||
/* Free all host channels */
|
||||
|
||||
for (chidx = 2; chidx < STM32L4_NHOST_CHANNELS; chidx ++)
|
||||
for (chidx = 2; chidx < STM32L4_NHOST_CHANNELS; chidx++)
|
||||
{
|
||||
stm32l4_chan_free(priv, chidx);
|
||||
}
|
||||
@ -4724,7 +4724,7 @@ static ssize_t stm32l4_transfer(FAR struct usbhost_driver_s *drvr,
|
||||
usbhost_ep_t ep, FAR uint8_t *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct stm32l4_usbhost_s *priv = (FAR struct stm32l4_usbhost_s *)drvr;
|
||||
FAR struct stm32l4_usbhost_s *priv = (FAR struct stm32l4_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
ssize_t nbytes;
|
||||
int ret;
|
||||
@ -4797,7 +4797,7 @@ static int stm32l4_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
FAR uint8_t *buffer, size_t buflen,
|
||||
usbhost_asynch_t callback, FAR void *arg)
|
||||
{
|
||||
FAR struct stm32l4_usbhost_s *priv = (FAR struct stm32l4_usbhost_s *)drvr;
|
||||
FAR struct stm32l4_usbhost_s *priv = (FAR struct stm32l4_usbhost_s *)drvr;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
int ret;
|
||||
|
||||
@ -4850,7 +4850,7 @@ static int stm32l4_asynch(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep,
|
||||
|
||||
static int stm32l4_cancel(FAR struct usbhost_driver_s *drvr, usbhost_ep_t ep)
|
||||
{
|
||||
FAR struct stm32l4_usbhost_s *priv = (FAR struct stm32l4_usbhost_s *)drvr;
|
||||
FAR struct stm32l4_usbhost_s *priv = (FAR struct stm32l4_usbhost_s *)drvr;
|
||||
FAR struct stm32l4_chan_s *chan;
|
||||
unsigned int chidx = (unsigned int)ep;
|
||||
irqstate_t flags;
|
||||
|
@ -1947,7 +1947,7 @@ static int stm32l4serial_ioctl(FAR struct file *filep, int cmd,
|
||||
FAR struct uart_dev_s *dev = inode->i_private;
|
||||
#endif
|
||||
#if defined(CONFIG_SERIAL_TERMIOS)
|
||||
FAR struct stm32l4_serial_s *priv =
|
||||
FAR struct stm32l4_serial_s *priv =
|
||||
(FAR struct stm32l4_serial_s *)dev->priv;
|
||||
#endif
|
||||
int ret = OK;
|
||||
|
@ -1030,7 +1030,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
#if defined(CONFIG_SERIAL_TERMIOS)
|
||||
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
|
||||
#endif
|
||||
int ret = OK;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -536,7 +536,7 @@ static int tms570_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
case TCGETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct tms570_dev_s *priv = (struct tms570_dev_s *)dev->priv;
|
||||
struct tms570_dev_s *priv = (struct tms570_dev_s *)dev->priv;
|
||||
|
||||
if (!termiosp)
|
||||
{
|
||||
@ -588,7 +588,7 @@ static int tms570_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
case TCSETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct tms570_dev_s *priv = (struct tms570_dev_s *)dev->priv;
|
||||
struct tms570_dev_s *priv = (struct tms570_dev_s *)dev->priv;
|
||||
uint32_t baud;
|
||||
uint32_t ints;
|
||||
uint8_t parity;
|
||||
|
@ -452,7 +452,7 @@ static int bl602_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
do
|
||||
{
|
||||
struct termios * termiosp = (struct termios *)arg;
|
||||
struct bl602_uart_s *priv = (struct bl602_uart_s *)dev->priv;
|
||||
struct bl602_uart_s *priv = (struct bl602_uart_s *)dev->priv;
|
||||
|
||||
if (!termiosp)
|
||||
{
|
||||
@ -662,7 +662,7 @@ static int bl602_receive(struct uart_dev_s *dev, unsigned int *status)
|
||||
static void bl602_rxint(struct uart_dev_s *dev, bool enable)
|
||||
{
|
||||
uint32_t int_mask;
|
||||
struct bl602_uart_s *priv = (struct bl602_uart_s *)dev->priv;
|
||||
struct bl602_uart_s *priv = (struct bl602_uart_s *)dev->priv;
|
||||
uint8_t uart_idx = priv->config.idx;
|
||||
irqstate_t flags = enter_critical_section();
|
||||
|
||||
|
@ -769,8 +769,8 @@ static int esp32c3_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
case TCGETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32c3_uart_s *priv = (struct esp32c3_uart_s *)dev->priv;
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32c3_uart_s *priv = (struct esp32c3_uart_s *)dev->priv;
|
||||
if (!termiosp)
|
||||
{
|
||||
ret = -EINVAL;
|
||||
@ -825,8 +825,8 @@ static int esp32c3_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
case TCSETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32c3_uart_s *priv = (struct esp32c3_uart_s *)dev->priv;
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32c3_uart_s *priv = (struct esp32c3_uart_s *)dev->priv;
|
||||
uint32_t baud;
|
||||
uint32_t current_int_sts;
|
||||
uint8_t parity;
|
||||
|
@ -1472,7 +1472,7 @@ static int esp32_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
case TCGETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32_dev_s *priv = (struct esp32_dev_s *)dev->priv;
|
||||
struct esp32_dev_s *priv = (struct esp32_dev_s *)dev->priv;
|
||||
|
||||
if (!termiosp)
|
||||
{
|
||||
@ -1532,7 +1532,7 @@ static int esp32_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
case TCSETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32_dev_s *priv = (struct esp32_dev_s *)dev->priv;
|
||||
struct esp32_dev_s *priv = (struct esp32_dev_s *)dev->priv;
|
||||
uint32_t baud;
|
||||
uint32_t intena;
|
||||
uint8_t parity;
|
||||
|
@ -766,8 +766,8 @@ static int esp32s2_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
case TCGETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s2_uart_s *priv = (struct esp32s2_uart_s *)dev->priv;
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s2_uart_s *priv = (struct esp32s2_uart_s *)dev->priv;
|
||||
if (!termiosp)
|
||||
{
|
||||
ret = -EINVAL;
|
||||
@ -822,8 +822,8 @@ static int esp32s2_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
case TCSETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s2_uart_s *priv = (struct esp32s2_uart_s *)dev->priv;
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s2_uart_s *priv = (struct esp32s2_uart_s *)dev->priv;
|
||||
uint32_t baud;
|
||||
uint32_t current_int_sts;
|
||||
uint8_t parity;
|
||||
|
@ -341,7 +341,7 @@ static void esp32s2_tim_clear(struct esp32s2_tim_dev_s *dev)
|
||||
static void esp32s2_tim_setmode(struct esp32s2_tim_dev_s *dev,
|
||||
enum esp32s2_tim_mode_e mode)
|
||||
{
|
||||
struct esp32s2_tim_priv_s *priv = (struct esp32s2_tim_priv_s *)dev;
|
||||
struct esp32s2_tim_priv_s *priv = (struct esp32s2_tim_priv_s *)dev;
|
||||
|
||||
DEBUGASSERT(dev);
|
||||
|
||||
|
@ -776,8 +776,8 @@ static int esp32s3_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
case TCGETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s3_uart_s *priv = (struct esp32s3_uart_s *)dev->priv;
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s3_uart_s *priv = (struct esp32s3_uart_s *)dev->priv;
|
||||
if (termiosp == NULL)
|
||||
{
|
||||
ret = -EINVAL;
|
||||
@ -832,8 +832,8 @@ static int esp32s3_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
|
||||
case TCSETS:
|
||||
{
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s3_uart_s *priv = (struct esp32s3_uart_s *)dev->priv;
|
||||
struct termios *termiosp = (struct termios *)arg;
|
||||
struct esp32s3_uart_s *priv = (struct esp32s3_uart_s *)dev->priv;
|
||||
uint32_t baud;
|
||||
uint32_t current_int_sts;
|
||||
uint8_t parity;
|
||||
|
@ -256,7 +256,7 @@ static inline uint8_t z8_getuart(FAR struct z8_uart_s *priv, uint8_t offset)
|
||||
|
||||
static uint8_t z8_disableuartirq(FAR struct uart_dev_s *dev)
|
||||
{
|
||||
struct z8_uart_s *priv = (struct z8_uart_s *)dev->priv;
|
||||
struct z8_uart_s *priv = (struct z8_uart_s *)dev->priv;
|
||||
irqstate_t flags = enter_critical_section();
|
||||
uint8_t state = priv->rxenabled ?
|
||||
STATE_RXENABLED : STATE_DISABLED | \
|
||||
@ -586,7 +586,7 @@ static int z8_receive(FAR struct uart_dev_s *dev, FAR uint32_t *status)
|
||||
|
||||
static void z8_rxint(FAR struct uart_dev_s *dev, bool enable)
|
||||
{
|
||||
struct z8_uart_s *priv = (struct z8_uart_s *)dev->priv;
|
||||
struct z8_uart_s *priv = (struct z8_uart_s *)dev->priv;
|
||||
irqstate_t flags = enter_critical_section();
|
||||
|
||||
if (enable)
|
||||
@ -642,7 +642,7 @@ static void z8_send(FAR struct uart_dev_s *dev, int ch)
|
||||
|
||||
static void z8_txint(FAR struct uart_dev_s *dev, bool enable)
|
||||
{
|
||||
struct z8_uart_s *priv = (struct z8_uart_s *)dev->priv;
|
||||
struct z8_uart_s *priv = (struct z8_uart_s *)dev->priv;
|
||||
irqstate_t flags = enter_critical_section();
|
||||
|
||||
if (enable)
|
||||
|
@ -336,7 +336,7 @@ static int ak09912_seqinit(FAR struct ak09912_dev_s *priv)
|
||||
static int ak09912_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
|
||||
if (g_refcnt == 0)
|
||||
{
|
||||
@ -374,7 +374,7 @@ static int ak09912_open(FAR struct file *filep)
|
||||
static int ak09912_close(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
|
||||
g_refcnt--;
|
||||
|
||||
@ -406,7 +406,7 @@ static ssize_t ak09912_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t len)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
|
||||
len = len / AK09912_BYTESPERSAMPLE * AK09912_BYTESPERSAMPLE;
|
||||
len = seq_read(priv->seq, priv->id, buffer, len);
|
||||
@ -431,7 +431,7 @@ static ssize_t ak09912_write(FAR struct file *filep, FAR const char *buffer,
|
||||
static int ak09912_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
|
@ -285,7 +285,7 @@ static int bh1745nuc_seqinit(FAR struct bh1745nuc_dev_s *priv)
|
||||
|
||||
static int bh1745nuc_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct bh1745nuc_dev_s *priv = inode->i_private;
|
||||
uint8_t val;
|
||||
|
||||
@ -337,7 +337,7 @@ static int bh1745nuc_open(FAR struct file *filep)
|
||||
|
||||
static int bh1745nuc_close(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct bh1745nuc_dev_s *priv = inode->i_private;
|
||||
uint8_t val;
|
||||
|
||||
@ -371,7 +371,7 @@ static int bh1745nuc_close(FAR struct file *filep)
|
||||
static ssize_t bh1745nuc_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t len)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct bh1745nuc_dev_s *priv = inode->i_private;
|
||||
|
||||
len = len / BH1745NUC_BYTESPERSAMPLE * BH1745NUC_BYTESPERSAMPLE;
|
||||
|
@ -117,7 +117,7 @@ static int lcddev_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
FAR struct lcddev_dev_s *priv;
|
||||
int ret = OK;
|
||||
|
||||
priv = (FAR struct lcddev_dev_s *)filep->f_inode->i_private;
|
||||
priv = (FAR struct lcddev_dev_s *)filep->f_inode->i_private;
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
|
@ -2306,7 +2306,7 @@ static int mmcsd_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
|
||||
|
||||
finfo("Entry\n");
|
||||
DEBUGASSERT(inode && inode->i_private);
|
||||
priv = (FAR struct mmcsd_state_s *)inode->i_private;
|
||||
priv = (FAR struct mmcsd_state_s *)inode->i_private;
|
||||
|
||||
/* Process the IOCTL by command */
|
||||
|
||||
|
@ -516,7 +516,7 @@ static int ak09912_initialize(FAR struct ak09912_dev_s *priv)
|
||||
static int ak09912_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
int ret = 0;
|
||||
|
||||
ret = ak09912_set_power_mode(priv, priv->mode);
|
||||
@ -540,7 +540,7 @@ static int ak09912_open(FAR struct file *filep)
|
||||
static int ak09912_close(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
int ret = 0;
|
||||
|
||||
ret = ak09912_set_power_mode(priv, AKM_POWER_DOWN_MODE);
|
||||
@ -616,7 +616,7 @@ static ssize_t ak09912_write(FAR struct file *filep, FAR const char *buffer,
|
||||
static int ak09912_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
FAR struct ak09912_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
|
@ -256,7 +256,7 @@ static int bh1750fvi_ioctl(FAR struct file *filep, int cmd,
|
||||
unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct bh1750fvi_dev_s *priv = inode->i_private;
|
||||
FAR struct bh1750fvi_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
|
@ -513,8 +513,8 @@ static int hdc1008_putreg(FAR struct hdc1008_dev_s *priv, uint8_t regaddr,
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
static int hdc1008_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
(FAR struct hdc1008_dev_s *)inode->i_private;
|
||||
int ret;
|
||||
|
||||
@ -546,8 +546,8 @@ static int hdc1008_open(FAR struct file *filep)
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
static int hdc1008_close(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
(FAR struct hdc1008_dev_s *)inode->i_private;
|
||||
int ret;
|
||||
|
||||
@ -589,8 +589,8 @@ static int hdc1008_close(FAR struct file *filep)
|
||||
static ssize_t hdc1008_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
(FAR struct hdc1008_dev_s *)inode->i_private;
|
||||
int ret;
|
||||
int len = 0;
|
||||
@ -738,8 +738,8 @@ static ssize_t hdc1008_write(FAR struct file *filep, FAR const char *buffer,
|
||||
|
||||
static int hdc1008_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct hdc1008_dev_s *priv =
|
||||
(FAR struct hdc1008_dev_s *)inode->i_private;
|
||||
int ret;
|
||||
|
||||
|
@ -296,7 +296,7 @@ static ssize_t lis2dh_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct lis2dh_dev_s *priv = inode->i_private;
|
||||
FAR struct lis2dh_dev_s *priv = inode->i_private;
|
||||
FAR struct lis2dh_result *ptr;
|
||||
int readcount = (buflen - sizeof(struct lis2dh_res_header)) /
|
||||
sizeof(struct lis2dh_vector_s);
|
||||
@ -1398,7 +1398,9 @@ static unsigned int lis2dh_get_fifo_readings(FAR struct lis2dh_dev_s *priv,
|
||||
{
|
||||
uint8_t raw[6];
|
||||
struct lis2dh_vector_s sample;
|
||||
} *buf = (void *)&res->measurements[res->header.meas_count];
|
||||
}
|
||||
|
||||
*buf = (void *)&res->measurements[res->header.meas_count];
|
||||
|
||||
bool xy_axis_fixup = priv->setup->xy_axis_fixup;
|
||||
size_t buflen = readcount * 6;
|
||||
|
@ -233,7 +233,7 @@ static ssize_t mcp9844_write(FAR struct file *filep, FAR const char *buffer,
|
||||
static int mcp9844_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct mcp9844_dev_s *priv = inode->i_private;
|
||||
FAR struct mcp9844_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
|
@ -372,7 +372,7 @@ static int mlx90614_ioctl(FAR struct file *filep, int cmd,
|
||||
unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct mlx90614_dev_s *priv = inode->i_private;
|
||||
FAR struct mlx90614_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
switch (cmd)
|
||||
|
@ -596,7 +596,7 @@ static int scd30_configure(FAR struct scd30_dev_s *priv, bool start)
|
||||
static int scd30_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct scd30_dev_s *priv = inode->i_private;
|
||||
FAR struct scd30_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
/* Get exclusive access */
|
||||
|
@ -553,7 +553,7 @@ static int sgp30_measure_raw(FAR struct sgp30_dev_s *priv,
|
||||
static int sgp30_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct sgp30_dev_s *priv = inode->i_private;
|
||||
FAR struct sgp30_dev_s *priv = inode->i_private;
|
||||
int ret = OK;
|
||||
|
||||
/* Get exclusive access */
|
||||
|
@ -649,7 +649,7 @@ static int sps30_configure(FAR struct sps30_dev_s *priv, bool start)
|
||||
static int sps30_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct sps30_dev_s *priv = inode->i_private;
|
||||
FAR struct sps30_dev_s *priv = inode->i_private;
|
||||
union article_u
|
||||
{
|
||||
uint32_t u32[8];
|
||||
|
@ -898,8 +898,8 @@ static int u16550_interrupt(int irq, FAR void *context, FAR void *arg)
|
||||
|
||||
static int u16550_ioctl(struct file *filep, int cmd, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct uart_dev_s *dev = inode->i_private;
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct uart_dev_s *dev = inode->i_private;
|
||||
FAR struct u16550_s *priv = (FAR struct u16550_s *)dev->priv;
|
||||
int ret;
|
||||
|
||||
|
@ -748,8 +748,8 @@ static int ramlog_file_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
||||
|
||||
/* Remove all memory of the poll setup */
|
||||
|
||||
*slot = NULL;
|
||||
fds->priv = NULL;
|
||||
*slot = NULL;
|
||||
fds->priv = NULL;
|
||||
}
|
||||
|
||||
errout:
|
||||
|
@ -2424,7 +2424,7 @@ static int usbhost_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
uartdev = (FAR struct uart_dev_s *)inode->i_private;
|
||||
|
||||
DEBUGASSERT(uartdev && uartdev->priv);
|
||||
priv = (FAR struct usbhost_cdcacm_s *)uartdev->priv;
|
||||
priv = (FAR struct usbhost_cdcacm_s *)uartdev->priv;
|
||||
|
||||
/* Check if the CDC/ACM device is still connected */
|
||||
|
||||
|
@ -2361,7 +2361,7 @@ static int usbhost_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
uartdev = (FAR struct uart_dev_s *)inode->i_private;
|
||||
|
||||
DEBUGASSERT(uartdev && uartdev->priv);
|
||||
priv = (FAR struct usbhost_ft232r_s *)uartdev->priv;
|
||||
priv = (FAR struct usbhost_ft232r_s *)uartdev->priv;
|
||||
|
||||
/* Check if the FTDI device is still connected */
|
||||
|
||||
|
@ -2294,7 +2294,7 @@ static int usbhost_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
|
||||
|
||||
uinfo("Entry\n");
|
||||
DEBUGASSERT(inode && inode->i_private);
|
||||
priv = (FAR struct usbhost_state_s *)inode->i_private;
|
||||
priv = (FAR struct usbhost_state_s *)inode->i_private;
|
||||
|
||||
/* Check if the mass storage device is still connected */
|
||||
|
||||
|
@ -101,7 +101,7 @@ const struct file_operations g_nxterm_drvrops =
|
||||
static int nxterm_open(FAR struct file *filep)
|
||||
{
|
||||
FAR struct inode *inode = filep->f_inode;
|
||||
FAR struct nxterm_state_s *priv = inode->i_private;
|
||||
FAR struct nxterm_state_s *priv = inode->i_private;
|
||||
|
||||
DEBUGASSERT(filep && filep->f_inode);
|
||||
|
||||
|
@ -327,8 +327,8 @@ int nxterm_poll(FAR struct file *filep, FAR struct pollfd *fds, bool setup)
|
||||
|
||||
/* Remove all memory of the poll setup */
|
||||
|
||||
*slot = NULL;
|
||||
fds->priv = NULL;
|
||||
*slot = NULL;
|
||||
fds->priv = NULL;
|
||||
}
|
||||
|
||||
errout:
|
||||
|
Loading…
Reference in New Issue
Block a user