Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2776990ybi; Sat, 13 Jul 2019 23:31:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKA7AZnmTarnOU4hQrTZAQv5etSTQRBnfdHiaaCHMoRlDiCaI/HVwrxLHDe4LNP1Hg1hbO X-Received: by 2002:a63:f150:: with SMTP id o16mr11212177pgk.105.1563085873033; Sat, 13 Jul 2019 23:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563085873; cv=none; d=google.com; s=arc-20160816; b=FkU15Wpj24TtOE4eR4RggBEpahUtvr4Vz2a9WegSiYB1kGBf/iJnJGFohSXukhcW0z yAAY0DuVMNFLkCXaZuYUCBMtIKJndpygAgnpXDE45sw1irmvwpgEfnkuvM8garq9BX+L w26fWyjCyGRGPps2JmMAsXygGer11okhpuP9Vrvqi7hjcUa+I119tV+uaYx3zD77EMsq HGXoliyTMVa3qMJQlfDvWYQjr0THzgn9XcncIcbwXHMLmNb8C8meqTDHCbfn6fKi4ptX Yw4O4Eq6XikTruAZ6I3/AnxaG9ZU6lMP03IvdCthQGfhPoGZMiRUN5yobSsJ0+vPFyyp O+7Q== 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=z5z76tEKiPEmiAgyVzxkObG1f6qA72Yp6dA2y+4XCBw=; b=L8rSZWP+S4CXCQ9DItv73L9soOvoshHjPQtukyQ14NLdFnbgmuwqYX/1oOSmIG6/+O fiI7nV7G3Ucujls2GjgJ1SPKSsGP8ftuhJaoFwhbe3XsqKMN+JEQVxLeAavTjoHbvOcC 4g8x7U95OlpRVf5DYhctteCs2Z5kfoT7KHyktHGU3wWNaTSBY3FKJ064MAW4aJ17wAOP y96D1oqtYUN2bGtK8uFja9vZruJ9/oUbkgorc9LzeWe+lzlj45JRxYCbNGqYBWUt6G0G ak1jQFrApHIzhb63goOCm9r+AtDy1xAkvzTUKYU1qPmXmoffSELCEiPcv3BpC8CnFjFW iASQ== 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 p13si11672557plo.33.2019.07.13.23.30.58; Sat, 13 Jul 2019 23:31:13 -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 S1728106AbfGNG20 (ORCPT + 99 others); Sun, 14 Jul 2019 02:28:26 -0400 Received: from mga06.intel.com ([134.134.136.31]:30364 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726227AbfGNG20 (ORCPT ); Sun, 14 Jul 2019 02:28:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jul 2019 23:28:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,489,1557212400"; d="scan'208";a="318388014" Received: from ingas-nuc1.sea.intel.com ([10.251.146.93]) by orsmga004.jf.intel.com with ESMTP; 13 Jul 2019 23:28:25 -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 v2] mesh: Rename mesh_config_srv_init() to cfgmod_server_init() Date: Sat, 13 Jul 2019 23:28:12 -0700 Message-Id: <20190714062812.31041-11-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190714062812.31041-1-inga.stotland@intel.com> References: <20190714062812.31041-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 0f4569e36..0e95d908b 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -476,7 +476,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; @@ -1509,7 +1509,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