Correct the code alignment found in review

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-25 14:36:11 +08:00 committed by Petro Karashchenko
parent 09c6b02017
commit fc16cfaefe
5 changed files with 17 additions and 17 deletions

View File

@ -362,8 +362,8 @@ static int bl602_pwm_start(struct pwm_lowerhalf_s *dev,
const struct pwm_info_s *info)
{
struct bl602_pwm_s *priv = (struct bl602_pwm_s *)dev;
int ret = OK;
int i;
int ret = OK;
int i;
UNUSED(i);

View File

@ -391,7 +391,7 @@ static void bl602_shutdown(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;
ret = irq_attach(priv->irq, __uart_interrupt, (void *)dev);

View File

@ -402,7 +402,7 @@ static int esp32c3_ioctl(struct file *filep, int cmd, unsigned long arg)
struct inode *inode = filep->f_inode;
struct uart_dev_s *dev = inode->i_private;
#endif
int ret = OK;
int ret = OK;
switch (cmd)
{

View File

@ -69,7 +69,7 @@ static struct up_dev_s g_simkeyboard;
int sim_kbd_initialize(void)
{
int ret;
int ret;
struct up_dev_s *priv = &g_simkeyboard;
memset(priv, 0, sizeof(*priv));

View File

@ -978,9 +978,9 @@ static int tc_open(struct file *filep)
{
#ifdef CONFIG_TOUCHSCREEN_REFCNT
struct inode *inode;
struct tc_dev_s *priv;
uint8_t tmp;
int ret;
struct tc_dev_s *priv;
uint8_t tmp;
int ret;
DEBUGASSERT(filep);
inode = filep->f_inode;
@ -1031,8 +1031,8 @@ static int tc_close(struct file *filep)
{
#ifdef CONFIG_TOUCHSCREEN_REFCNT
struct inode *inode;
struct tc_dev_s *priv;
int ret;
struct tc_dev_s *priv;
int ret;
DEBUGASSERT(filep);
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)
{
struct inode *inode;
struct tc_dev_s *priv;
struct tc_dev_s *priv;
struct touch_sample_s *report;
struct tc_sample_s sample;
int ret;
int ret;
DEBUGASSERT(filep);
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 */
#else
struct inode *inode;
struct tc_dev_s *priv;
int ret;
struct tc_dev_s *priv;
int ret;
iinfo("cmd: %d arg: %ld\n", cmd, arg);
DEBUGASSERT(filep);
@ -1237,9 +1237,9 @@ static int tc_poll(struct file *filep, struct pollfd *fds,
bool setup)
{
struct inode *inode;
struct tc_dev_s *priv;
int ret;
int i;
struct tc_dev_s *priv;
int ret;
int i;
iinfo("setup: %d\n", (int)setup);
DEBUGASSERT(filep && fds);