Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3529108ybi; Sun, 14 Jul 2019 16:26:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiFeel3S3oKM7Qc/o810V/j212YDbLpRNR8aif1wSBlSnYatksxvb3PC+WdEHEvh04GRGK X-Received: by 2002:a17:902:ac87:: with SMTP id h7mr25898149plr.36.1563146787220; Sun, 14 Jul 2019 16:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563146787; cv=none; d=google.com; s=arc-20160816; b=Wo9g/eAXj0Pu6qBxjekomcKPjoABCiXpiw6eY/2OEjkNNuIU+6HtNzE3sZsNJemxdW E0oPNwFnNRLWh+RyOZf1m39gzzCt54+ArTCtmod7Q4Uyns0Zcgi9E3f3HCvKGuqZqyZt c5ciZoBpi5uShdeP8MhRCNyCKB6Gz1RZYkdzG67Ned2dUSVV9eIZDGLhXyy16jJu4FFt PYzk3UyYY0yO3LPiBjD66jmYRgb3Zrlhi7QyQDIAGfhlwk+l8lfZRre9RHSP3bTcvtVd rgCYi0uxysnARGzA2fwrb+7oQ5b2OHg+7iKEsBsCub8I6LH/P82lkBiOiUBGbePTRPZn +5eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=2mtHrvf+dnuBt1lIyYE3Lvm3cfF07BmFwHy5lSjoMlU=; b=koUbAC/4B2YMUNj6XvCgZhEJJJmXxXpJiOqiMAoF1nC5rOxWixqWPMlt3a6ona7A9O QqOCWs9B4Qp5l6sfeuRJmlG83goN+bhU6IZTmZ5NktNqyZliNOPboQjL3fOITEtJv5Ze N22PciDrB3IsbFl90R8YJYsHN1PZHUlEJ6Yveid6HLhg+BwEJ3OAWhYwsrwIndDELROx DX6+Av/zhS8Z2qdl7ekMrCCs/RCk8t55LDUXO9RLJldil1y4flMTLNmZSJPmM6oqrRl2 tdSWlhI50J5sg0n2PzfQouQprUkcjlOsKi0HxftpMoUELRh+mvK6biDIMH3KuE+e4JPN jMEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si13943242pla.121.2019.07.14.16.26.12; Sun, 14 Jul 2019 16:26:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728921AbfGNXXf (ORCPT + 99 others); Sun, 14 Jul 2019 19:23:35 -0400 Received: from mga02.intel.com ([134.134.136.20]:39750 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728884AbfGNXXe (ORCPT ); Sun, 14 Jul 2019 19:23:34 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jul 2019 16:23:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,492,1557212400"; d="scan'208";a="168805666" Received: from rreichel-mobl1.amr.corp.intel.com (HELO ingas-nuc1.sea.intel.com) ([10.254.24.81]) by fmsmga007.fm.intel.com with ESMTP; 14 Jul 2019 16:23:33 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, michal.lowas-rzechonek@silvair.com, jakub.witowski@silvair.com, Inga Stotland Subject: [PATCH BlueZ 10/10 v3] mesh: Rename mesh_config_srv_init() to cfgmod_server_init() Date: Sun, 14 Jul 2019 16:23:20 -0700 Message-Id: <20190714232320.20921-11-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190714232320.20921-1-inga.stotland@intel.com> References: <20190714232320.20921-1-inga.stotland@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This renames mesh_config_srv_init() to cfgmod_server_init() to avoid confusion with mesh_config_..> API and to reflect that the call pertains to configuration server model. --- mesh/cfgmod-server.c | 2 +- mesh/cfgmod.h | 2 +- mesh/node.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index b256cdd48..71d59fd40 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -1284,7 +1284,7 @@ static const struct mesh_model_ops ops = { .pub = NULL }; -void mesh_config_srv_init(struct mesh_node *node, uint8_t ele_idx) +void cfgmod_server_init(struct mesh_node *node, uint8_t ele_idx) { l_debug("%2.2x", ele_idx); mesh_model_register(node, ele_idx, CONFIG_SRV_MODEL, &ops, node); diff --git a/mesh/cfgmod.h b/mesh/cfgmod.h index 84fa184e5..da8b5b32b 100644 --- a/mesh/cfgmod.h +++ b/mesh/cfgmod.h @@ -94,4 +94,4 @@ #define OP_VEND_MODEL_APP_GET 0x804C #define OP_VEND_MODEL_APP_LIST 0x804E -void mesh_config_srv_init(struct mesh_node *node, uint8_t ele_idx); +void cfgmod_server_init(struct mesh_node *node, uint8_t ele_idx); diff --git a/mesh/node.c b/mesh/node.c index 79e165fca..652551756 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -478,7 +478,7 @@ static bool init_from_storage(struct mesh_config_node *db_node, goto fail; /* Initialize configuration server model */ - mesh_config_srv_init(node, PRIMARY_ELE_IDX); + cfgmod_server_init(node, PRIMARY_ELE_IDX); node->cfg = cfg; @@ -1516,7 +1516,7 @@ static bool add_local_node(struct mesh_node *node, uint16_t unicast, bool kr, mesh_config_save(node->cfg, true, NULL, NULL); /* Initialize configuration server model */ - mesh_config_srv_init(node, PRIMARY_ELE_IDX); + cfgmod_server_init(node, PRIMARY_ELE_IDX); return true; } -- 2.21.0