Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3566954rdh; Thu, 28 Sep 2023 16:10:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTNy/9/H+3hPkalgLBlalRXUdQ+4FOo9HuTLx8v+fb4fUvJKHYNkEBWlXzVrc/BjWic2ET X-Received: by 2002:a17:90b:358c:b0:278:fb87:43e3 with SMTP id mm12-20020a17090b358c00b00278fb8743e3mr2647377pjb.12.1695942655411; Thu, 28 Sep 2023 16:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695942655; cv=none; d=google.com; s=arc-20160816; b=CNU4uOooIsy7z2rWBiBjIN5/MD4QW+3uteSIMCAglCNBPVtZtpBrmB/h9EsbP6Al8U 7lzst5ZA26Ni8RMxTcuPvo4Rkw07hzftfNnHfhtWHxKEU7vjaLdq78RzPncVcjK6u1aH ufhnLIlK8ITc4JqWMWTwxfjhKOigK+M0H4O0s/0/fXUm3SUae+Cjv4Xfj9bC2oPykNsg 0tewJdtJy/01c8LaoQrMx5b33SoNm+wvNv6d+H0NQHeeMy8RtNcHuwTbzlUnKFnCBIkx 6N5v8+Bgmtrg2O/IrxX7yBmHpSmkcJRk8cvuwcc/EBGlasEFIk9DXslcQP5TFdlC+9bl 1R4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=4AY5BVXbm4ubX1JZNRvTpReH2b5fYZxAwIwQHK1qihc=; fh=4lGQI6056MBa4/oovMyIYaKLn+Wz/24RGvUivMmQP8E=; b=y1KaGZjS8+lb3cjzi0yPlSvIg8z5YBOilU3DrTOEnZi7F2V1AWNwNg8ilU7aERCqBW FNNpFBQ/nz2yobPzCo7Yydv+NEGb2m84s3CEtpriE8HMy+i6JkuH0Upn1hYU5Qnyw/Da kPyneVmQZWUID+ovWFZldAHQyhk6n8kdYn8WfKSfPN1khVNC2W6MY1QEKZkqePnhxfNo 8QL9OP8ORahsGd2x1Rx4f1c7OM9y4s8a0DD1yM+JR2Ex9Pmgzd4pMAq6wgSQneabSe1Q MA1qSTVoe2cgfFz+dlXgSK33fRZCH0p3NHUyXA5krI9mV4/5PrR/jI04rkkXq8LlcNEO diqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Raa8Nhll; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ot2-20020a17090b3b4200b00268293118efsi253276pjb.47.2023.09.28.16.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 16:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Raa8Nhll; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id BC64382C52C6; Thu, 28 Sep 2023 13:39:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232024AbjI1UjD (ORCPT + 99 others); Thu, 28 Sep 2023 16:39:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbjI1UjD (ORCPT ); Thu, 28 Sep 2023 16:39:03 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 036CF19C for ; Thu, 28 Sep 2023 13:39:02 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-690fa0eea3cso12057550b3a.0 for ; Thu, 28 Sep 2023 13:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695933540; x=1696538340; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=4AY5BVXbm4ubX1JZNRvTpReH2b5fYZxAwIwQHK1qihc=; b=Raa8Nhllhq+52FbFpOXBHmTc2gcyx/ZUyCuwSyasA4FKZz2sdJdO7EemGCSSrkLluc qm2ZtkxIVS/4ywB9GB+dSJFvd20ygh4M1h6HpykCqXvUQGL5fmSyei3qJ0ZuFhvCPV0U prkqZJkgx7Pf/46qspJaU3FnDo2kospBFs9fkR10CAAn89FmJHAAJUzqk3uU87Ukm/ft GQXBo8KR+pBHKizIzxJ980PTiU+IaVQ8BPpW8JmUt2qJVPNWDX33y5R4VX439ujDJHae 4jyfNwJGlRuW5KlwT7O9mQkvHlVLosT8BSjJfx+i9uG+mpBx6zTI6LrTGjrkKZ846ujB zrUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695933540; x=1696538340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4AY5BVXbm4ubX1JZNRvTpReH2b5fYZxAwIwQHK1qihc=; b=hx49NcrLvtAfoiUja8/rCM+9UcTiO+bFmhItKemTZPhwbzMdT6J+R3O1fSWtg7aZQ7 XJolosT/1rTkzxMV8kBdTGwPJUqhGOccZTNV7jecN55RGH1im5D7mJXgMpvoadSZRp2m 98FU/CzsnXi6Sr3fM1icbE5Tnc2kNQMWyOQwGVOceUpJ1Umq1WFgtUiS6iVapzVzbFpW 5hlTGdJm2Y5XRISadzLZsNPpbxheiI83LjZL+Sy2dHzTMY0hyJdJ5hP0VBHh2Q7KdnLd mJSUe5Rv4m88MZwCFYBK6INPwMLeOGpV419F7kI6eKQcRbWQ/WX8+Nc7ttn1/97WchhC RwMQ== X-Gm-Message-State: AOJu0YwavZzNC///cwjXutqTWXvpyARCXbjVpWXW6Sb8qU7slnIJe+5q //mFIb27Z8/Rzk9gbRnCvtcCftCj8XxPSVwB X-Received: by 2002:a05:6a00:10d3:b0:692:a727:1fde with SMTP id d19-20020a056a0010d300b00692a7271fdemr2401206pfu.14.1695933540487; Thu, 28 Sep 2023 13:39:00 -0700 (PDT) Received: from lvondent-mobl4.. (c-98-232-221-87.hsd1.or.comcast.net. [98.232.221.87]) by smtp.gmail.com with ESMTPSA id b25-20020aa78719000000b00690cd981652sm13750269pfo.61.2023.09.28.13.38.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 13:38:59 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v2 2/2] shared/csip: Remove bt_csip_add_db Date: Thu, 28 Sep 2023 13:38:56 -0700 Message-ID: <20230928203856.2100456-2-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230928203856.2100456-1-luiz.dentz@gmail.com> References: <20230928203856.2100456-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 13:39:04 -0700 (PDT) From: Luiz Augusto von Dentz bt_csip_add_db is unused since csip plugin does use bt_csip_new to properly create the attributes for CSIS. --- src/shared/csip.c | 5 ----- src/shared/csip.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/shared/csip.c b/src/shared/csip.c index 7e90a3c97614..04a8d542b390 100644 --- a/src/shared/csip.c +++ b/src/shared/csip.c @@ -389,11 +389,6 @@ static struct bt_csip_db *csip_get_db(struct gatt_db *db) return csip_db_new(db); } -void bt_csip_add_db(struct gatt_db *db) -{ - csip_db_new(db); -} - bool bt_csip_set_debug(struct bt_csip *csip, bt_csip_debug_func_t func, void *user_data, bt_csip_destroy_func_t destroy) { diff --git a/src/shared/csip.h b/src/shared/csip.h index 0f8acb1cae82..bc5519cfbc49 100644 --- a/src/shared/csip.h +++ b/src/shared/csip.h @@ -36,8 +36,6 @@ typedef bool (*bt_csip_sirk_func_t)(struct bt_csip *csip, uint8_t type, struct bt_csip *bt_csip_ref(struct bt_csip *csip); void bt_csip_unref(struct bt_csip *csip); -void bt_csip_add_db(struct gatt_db *db); - bool bt_csip_attach(struct bt_csip *csip, struct bt_gatt_client *client); void bt_csip_detach(struct bt_csip *csip); -- 2.41.0