Pārlūkot izejas kodu

update code style again

宋超 4 gadi atpakaļ
vecāks
revīzija
0fd1cc7e65

+ 1 - 1
bsp/imx6ull-artpi-smart/drivers/drv_lcd.c

@@ -115,7 +115,7 @@ static rt_err_t imx6ull_elcd_control(rt_device_t device, int cmd, void *args)
         {
             struct fb_fix_screeninfo *info = (struct fb_fix_screeninfo *)args;
             strncpy(info->id, elcd_dev->config->name, (strlen(elcd_dev->config->name)+1));
-            info->smem_len    = elcd_dev->info.width * elcd_dev->info.height * 2;
+            info->smem_len = elcd_dev->info.width * elcd_dev->info.height * 2;
             info->smem_start  = (rt_uint32_t)lwp_map_user_phy(lwp_self(), RT_NULL,
                                                                             elcd_dev->fb_phy,
                                                                             info->smem_len, 1);

+ 3 - 2
bsp/imx6ull-artpi-smart/drivers/drv_wdt.c

@@ -183,11 +183,12 @@ static struct rt_watchdog_ops imx6ull_wdog_ops =
 int rt_hw_wdt_init(void)
 {
     rt_err_t ret = RT_EOK;
-    for(int idx=0; idx<GET_ARRAY_NUM(imx6ull_watchdog); idx++)
+    for(int idx = 0; idx < GET_ARRAY_NUM(imx6ull_watchdog); idx++)
     {
         imx6ull_watchdog[idx].ops = &imx6ull_wdog_ops;
         imx6ull_watchdog[idx].vaddr = platform_get_periph_vaddr(imx6ull_watchdog[idx].paddr);
-        ret = rt_hw_watchdog_register(&imx6ull_watchdog[idx], imx6ull_watchdog[idx].name, RT_DEVICE_FLAG_DEACTIVATE, RT_NULL);
+        ret = rt_hw_watchdog_register(&imx6ull_watchdog[idx], imx6ull_watchdog[idx].name,
+                                         RT_DEVICE_FLAG_DEACTIVATE, RT_NULL);
         if (ret != RT_EOK)
         {
             LOG_E("rt device register failed %d\n", ret);