Correct the code alignment found in review
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
09c6b02017
commit
fc16cfaefe
arch
risc-v/src
sim/src/sim
boards/mips/pic32mx/pic32mx7mmb/src
@ -362,8 +362,8 @@ static int bl602_pwm_start(struct pwm_lowerhalf_s *dev,
|
|||||||
const struct pwm_info_s *info)
|
const struct pwm_info_s *info)
|
||||||
{
|
{
|
||||||
struct bl602_pwm_s *priv = (struct bl602_pwm_s *)dev;
|
struct bl602_pwm_s *priv = (struct bl602_pwm_s *)dev;
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
UNUSED(i);
|
UNUSED(i);
|
||||||
|
|
||||||
|
@ -391,7 +391,7 @@ static void bl602_shutdown(struct uart_dev_s *dev)
|
|||||||
|
|
||||||
static int bl602_attach(struct uart_dev_s *dev)
|
static int bl602_attach(struct uart_dev_s *dev)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct bl602_uart_s *priv = (struct bl602_uart_s *)dev->priv;
|
struct bl602_uart_s *priv = (struct bl602_uart_s *)dev->priv;
|
||||||
|
|
||||||
ret = irq_attach(priv->irq, __uart_interrupt, (void *)dev);
|
ret = irq_attach(priv->irq, __uart_interrupt, (void *)dev);
|
||||||
|
@ -402,7 +402,7 @@ static int esp32c3_ioctl(struct file *filep, int cmd, unsigned long arg)
|
|||||||
struct inode *inode = filep->f_inode;
|
struct inode *inode = filep->f_inode;
|
||||||
struct uart_dev_s *dev = inode->i_private;
|
struct uart_dev_s *dev = inode->i_private;
|
||||||
#endif
|
#endif
|
||||||
int ret = OK;
|
int ret = OK;
|
||||||
|
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ static struct up_dev_s g_simkeyboard;
|
|||||||
|
|
||||||
int sim_kbd_initialize(void)
|
int sim_kbd_initialize(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct up_dev_s *priv = &g_simkeyboard;
|
struct up_dev_s *priv = &g_simkeyboard;
|
||||||
|
|
||||||
memset(priv, 0, sizeof(*priv));
|
memset(priv, 0, sizeof(*priv));
|
||||||
|
@ -978,9 +978,9 @@ static int tc_open(struct file *filep)
|
|||||||
{
|
{
|
||||||
#ifdef CONFIG_TOUCHSCREEN_REFCNT
|
#ifdef CONFIG_TOUCHSCREEN_REFCNT
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct tc_dev_s *priv;
|
struct tc_dev_s *priv;
|
||||||
uint8_t tmp;
|
uint8_t tmp;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(filep);
|
DEBUGASSERT(filep);
|
||||||
inode = filep->f_inode;
|
inode = filep->f_inode;
|
||||||
@ -1031,8 +1031,8 @@ static int tc_close(struct file *filep)
|
|||||||
{
|
{
|
||||||
#ifdef CONFIG_TOUCHSCREEN_REFCNT
|
#ifdef CONFIG_TOUCHSCREEN_REFCNT
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct tc_dev_s *priv;
|
struct tc_dev_s *priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(filep);
|
DEBUGASSERT(filep);
|
||||||
inode = filep->f_inode;
|
inode = filep->f_inode;
|
||||||
@ -1070,10 +1070,10 @@ static int tc_close(struct file *filep)
|
|||||||
static ssize_t tc_read(struct file *filep, char *buffer, size_t len)
|
static ssize_t tc_read(struct file *filep, char *buffer, size_t len)
|
||||||
{
|
{
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct tc_dev_s *priv;
|
struct tc_dev_s *priv;
|
||||||
struct touch_sample_s *report;
|
struct touch_sample_s *report;
|
||||||
struct tc_sample_s sample;
|
struct tc_sample_s sample;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(filep);
|
DEBUGASSERT(filep);
|
||||||
inode = filep->f_inode;
|
inode = filep->f_inode;
|
||||||
@ -1195,8 +1195,8 @@ static int tc_ioctl(struct file *filep, int cmd, unsigned long arg)
|
|||||||
return -ENOTTY; /* None yet supported */
|
return -ENOTTY; /* None yet supported */
|
||||||
#else
|
#else
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct tc_dev_s *priv;
|
struct tc_dev_s *priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
iinfo("cmd: %d arg: %ld\n", cmd, arg);
|
||||||
DEBUGASSERT(filep);
|
DEBUGASSERT(filep);
|
||||||
@ -1237,9 +1237,9 @@ static int tc_poll(struct file *filep, struct pollfd *fds,
|
|||||||
bool setup)
|
bool setup)
|
||||||
{
|
{
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
struct tc_dev_s *priv;
|
struct tc_dev_s *priv;
|
||||||
int ret;
|
int ret;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
iinfo("setup: %d\n", (int)setup);
|
iinfo("setup: %d\n", (int)setup);
|
||||||
DEBUGASSERT(filep && fds);
|
DEBUGASSERT(filep && fds);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user