zephyr/subsys/bluetooth/host
Ulf Magnusson eddd98f811 kconfig: Replace some single-symbol 'if's with 'depends on'
I think people might be reading differences into 'if' and 'depends on'
that aren't there, like maybe 'if' being needed to "hide" a symbol,
while 'depends on' just adds a dependency.

There are no differences between 'if' and 'depends on'. 'if' is just a
shorthand for 'depends on'. They work the same when it comes to creating
implicit menus too.

The way symbols get "hidden" is through their dependencies not being
satisfied ('if'/'depends on' get copied up as a dependency on the
prompt).

Since 'if' and 'depends on' are the same, an 'if' with just a single
symbol in it can be replaced with a 'depends on'. IMO, it's best to
avoid 'if' there as a style choice too, because it confuses people into
thinking there's deep Kconfig magic going on that requires 'if'.

Going for 'depends on' can also remove some nested 'if's, which
generates nicer symbol information and docs, because nested 'if's really
are so simple/dumb that they just add the dependencies from both 'if's
to all symbols within.

Replace a bunch of single-symbol 'if's with 'depends on' to despam the
Kconfig files a bit and make it clearer how things work. Also do some
other minor related dependency refactoring.

The replacement isn't complete. Will fix up the rest later. Splitting it
a bit to make it more manageable.

(Everything above is true for choices, menus, and comments as well.)

Detected by tweaking the Kconfiglib parsing code. It's impossible to
detect after parsing, because 'if' turns into 'depends on'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2020-02-08 08:32:42 -05:00
..
a2dp_internal.h
a2dp.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
aes_ccm.c Bluetooth: Move Mesh CCM into a separate module 2020-01-30 12:41:45 +02:00
at.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
at.h
att_internal.h Bluetooth: GATT: Allocate request from a memory slab 2020-01-09 19:20:21 +01:00
att.c Bluetooth: ATT: Fix ATT corrupting mem_slab structure after free 2020-01-28 17:55:38 +02:00
avdtp_internal.h
avdtp.c Bluetooth: L2CAP: Make channel ops const 2019-12-19 11:28:24 +02:00
CMakeLists.txt Bluetooth: Move Mesh CCM into a separate module 2020-01-30 12:41:45 +02:00
conn_internal.h Bluetooth: host: Reserve conn object for connectable advertiser 2020-01-14 14:27:31 +01:00
conn.c Bluetooth: host: Fix app notified connected but no connection exists 2020-01-31 17:45:11 +02:00
crypto.c Bluetooth: Fix infinite recursion in host-based bt_rand 2020-01-31 18:33:06 +01:00
crypto.h
ecc.h
gatt_internal.h Bluetooth: GATT: Use check_perm to check CCC permission 2019-09-19 21:12:39 +03:00
gatt.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
hci_core.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
hci_core.h Bluetooth: host: Handle starting roles with different random address 2020-01-20 18:58:02 +02:00
hci_ecc.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
hfp_hf.c Bluetooth: Remove usage of BT_BUF_USER_DATA_MIN 2019-11-28 13:35:11 +02:00
hfp_internal.h
Kconfig kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
Kconfig.gatt Bluetooth: GATT: Allocate request from a memory slab 2020-01-09 19:20:21 +01:00
Kconfig.l2cap kconfig: Replace some single-symbol 'if's with 'depends on' 2020-02-08 08:32:42 -05:00
keys_br.c cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
keys.c bluetooth: host: Fix simultaneous pairings getting the same keys slot 2020-01-31 12:50:03 +02:00
keys.h Bluetooth: host: Rethink how unpair all works 2020-01-04 14:10:46 +01:00
l2cap_br.c Bluetooth: Always use full path to hci_driver.h 2020-01-16 19:20:39 -05:00
l2cap_internal.h Bluetooth: L2CAP: Add destroy callback to fixed L2CAP channels 2020-01-28 17:55:38 +02:00
l2cap.c Bluetooth: L2CAP: Reset channel status before destroy callback 2020-01-28 17:55:38 +02:00
monitor.c bluetooth: monitor: don't build backend if minimal 2019-10-01 09:24:02 -04:00
monitor.h
rfcomm_internal.h Bluetooth: hci_raw: Add support for specifying buffer headroom 2019-11-20 19:29:06 +01:00
rfcomm.c kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
sdp_internal.h
sdp.c Bluetooth: L2CAP: Make channel ops const 2019-12-19 11:28:24 +02:00
settings.c Bluetooth: Host: Fix issues with host IRK handling 2019-12-20 15:45:34 +01:00
settings.h subsys/settings: Update bluetooth module 2019-06-26 16:31:01 +02:00
smp_null.c Bluetooth: L2CAP: Add destroy callback to fixed L2CAP channels 2020-01-28 17:55:38 +02:00
smp.c bluetooth: host: Add workaround for USB HCI controllers 2020-02-03 18:39:55 +02:00
smp.h Bluetooth: Host: Fix issues with host IRK handling 2019-12-20 15:45:34 +01:00
testing.c
testing.h
uuid.c Bluetooth: UUID: Expose bt_uuid_to_str to application 2019-12-09 17:15:05 +02:00