Bluetooth: DIS: settings: drop dependency on BT_SETTINGS

Currently BT_DIS_SETTINGS and BT_SETTINGS are independent in
Kconfig. This seems fine, because BT_SETTINGS pulls a lot of
functionality, which is not really needed to implement DIS with values
configured in runtime (from settings subsystem).

Drop BT_SETTINGS conditional compilation and leave check on
BT_DIS_SETTINGS only.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
Marcin Niestroj 2020-11-10 18:23:41 +01:00 committed by Johan Hedberg
commit faabbb6809

View file

@ -141,7 +141,7 @@ BT_GATT_SERVICE_DEFINE(dis_svc,
);
#if defined(CONFIG_BT_SETTINGS) && defined(CONFIG_BT_DIS_SETTINGS)
#if defined(CONFIG_BT_DIS_SETTINGS)
static int dis_set(const char *name, size_t len_rd,
settings_read_cb read_cb, void *store)
{
@ -236,4 +236,4 @@ static int dis_set(const char *name, size_t len_rd,
SETTINGS_STATIC_HANDLER_DEFINE(bt_dis, "bt/dis", NULL, dis_set, NULL, NULL);
#endif /* CONFIG_BT_DIS_SETTINGS && CONFIG_BT_SETTINGS*/
#endif /* CONFIG_BT_DIS_SETTINGS*/