Skip to content

Commit 873ae0b

Browse files
finikorgnashif
authored andcommitted
usb: cdc_acm: Refactor Kconfig for CDC ACM
Remove unneeded "depends on" and use "if USB_CDC_ACM" instead of. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 1e92352 commit 873ae0b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

subsys/usb/class/Kconfig

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ config USB_CDC_ACM
1515
help
1616
USB CDC ACM device class driver
1717

18+
if USB_CDC_ACM
19+
1820
config CDC_ACM_PORT_NAME_0
1921
string "CDC ACM class device driver port name"
20-
depends on USB_CDC_ACM
2122
default "CDC_ACM_0"
2223
help
2324
Port name through which CDC ACM class device driver is accessed
@@ -31,32 +32,30 @@ config CDC_ACM_PORT_1
3132

3233
config CDC_ACM_PORT_NAME_1
3334
string "CDC ACM class device driver port name"
34-
depends on USB_CDC_ACM && CDC_ACM_PORT_1
35+
depends on CDC_ACM_PORT_1
3536
default "CDC_ACM_1"
3637
help
3738
Port name through which CDC ACM class device driver is accessed
3839

39-
endif
40+
endif # USB_COMPOSITE_DEVICE
4041

4142
config CDC_ACM_INTERRUPT_EP_MPS
4243
int
43-
depends on USB_CDC_ACM
4444
default 16
4545
help
4646
CDC ACM class interrupt IN endpoint size
4747

4848
config CDC_ACM_BULK_EP_MPS
4949
int
50-
depends on USB_CDC_ACM
5150
default 64
5251
help
5352
CDC ACM class bulk endpoints size
5453

55-
if USB_CDC_ACM
5654
module = USB_CDC_ACM
5755
module-str = usb cdc acm
5856
source "subsys/logging/Kconfig.template.log_config"
59-
endif
57+
58+
endif # USB_CDC_ACM
6059

6160
config USB_MASS_STORAGE
6261
bool "USB Mass Storage Device Class Driver"

0 commit comments

Comments
 (0)