Browse Source

[kconfig] fix Kconfig warnings

Meco Man 1 year ago
parent
commit
4657312f9d
3 changed files with 14 additions and 16 deletions
  1. 8 8
      components/drivers/Kconfig
  2. 5 5
      components/net/lwip/Kconfig
  3. 1 3
      components/vbus/Kconfig

+ 8 - 8
components/drivers/Kconfig

@@ -159,7 +159,7 @@ if RT_USING_I2C
                     default 2
                 config RT_SOFT_I2C1_BUS_NAME
                     string "Bus name"
-                    default i2c1
+                    default "i2c1"
                 config RT_SOFT_I2C1_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -183,7 +183,7 @@ if RT_USING_I2C
                     default 4
                 config RT_SOFT_I2C2_BUS_NAME
                     string "Bus name"
-                    default i2c2
+                    default "i2c2"
                 config RT_SOFT_I2C2_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -207,7 +207,7 @@ if RT_USING_I2C
                     default 6
                 config RT_SOFT_I2C3_BUS_NAME
                     string "Bus name"
-                    default i2c3
+                    default "i2c3"
                 config RT_SOFT_I2C3_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -231,7 +231,7 @@ if RT_USING_I2C
                     default 8
                 config RT_SOFT_I2C4_BUS_NAME
                     string "Bus name"
-                    default i2c4
+                    default "i2c4"
                 config RT_SOFT_I2C4_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -255,7 +255,7 @@ if RT_USING_I2C
                     default 10
                 config RT_SOFT_I2C5_BUS_NAME
                     string "Bus name"
-                    default i2c5
+                    default "i2c5"
                 config RT_SOFT_I2C5_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -279,7 +279,7 @@ if RT_USING_I2C
                     default 12
                 config RT_SOFT_I2C6_BUS_NAME
                     string "Bus name"
-                    default i2c6
+                    default "i2c6"
                 config RT_SOFT_I2C6_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -303,7 +303,7 @@ if RT_USING_I2C
                     default 14
                 config RT_SOFT_I2C7_BUS_NAME
                     string "Bus name"
-                    default i2c7
+                    default "i2c7"
                 config RT_SOFT_I2C7_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767
@@ -327,7 +327,7 @@ if RT_USING_I2C
                     default 16
                 config RT_SOFT_I2C8_BUS_NAME
                     string "Bus name"
-                    default i2c8
+                    default "i2c8"
                 config RT_SOFT_I2C8_TIMING_DELAY
                     int "Timing delay (us)"
                     range 0 32767

+ 5 - 5
components/net/lwip/Kconfig

@@ -92,15 +92,15 @@ if RT_USING_LWIP
     menu "Static IPv4 Address"
             config RT_LWIP_IPADDR
                 string "IPv4: IP address"
-                default 192.168.1.30
+                default "192.168.1.30"
 
             config RT_LWIP_GWADDR
                 string "IPv4: Gateway address"
-                default 192.168.1.1
+                default "192.168.1.1"
 
             config RT_LWIP_MSKADDR
                 string "IPv4: Mask address"
-                default 255.255.255.0
+                default "255.255.255.0"
     endmenu
 
     config RT_LWIP_UDP
@@ -265,7 +265,7 @@ if RT_USING_LWIP
     if LWIP_USING_DHCPD
         config DHCPD_SERVER_IP
             string "DHCPD SERVER IP address"
-            default 192.168.169.1
+            default "192.168.169.1"
 
         config DHCPD_USING_ROUTER
             bool "alloc gateway ip for router"
@@ -277,7 +277,7 @@ if RT_USING_LWIP
         if LWIP_USING_CUSTOMER_DNS_SERVER
             config DHCP_DNS_SERVER_IP
                 string "Custom DNS server IP address"
-                default 1.1.1.1
+                default "1.1.1.1"
         endif
     endif
 

+ 1 - 3
components/vbus/Kconfig

@@ -18,7 +18,7 @@ if RT_USING_VBUS
             Operating System.
 
     config RT_VBUS_USING_TESTS
-        bool "Enable tests on VBus "
+        bool "Enable tests on VBus"
         default n
 
     config _RT_VBUS_RING_BASE
@@ -33,8 +33,6 @@ if RT_USING_VBUS
 
     config RT_VBUS_GUEST_VIRQ
         int "RT_VBUS_GUEST_VIRQ"
-        help
-            RT_VBUS_GUEST_VIRQ
         help
             The interrupt number used to notify the client on a particular system.