Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A9CBC43387 for ; Fri, 28 Dec 2018 22:08:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E586217F9 for ; Fri, 28 Dec 2018 22:08:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbeL1WIJ (ORCPT ); Fri, 28 Dec 2018 17:08:09 -0500 Received: from mga17.intel.com ([192.55.52.151]:19951 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726749AbeL1WH6 (ORCPT ); Fri, 28 Dec 2018 17:07:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Dec 2018 14:07:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,411,1539673200"; d="scan'208";a="113968729" Received: from bgix-dell-lap.sea.intel.com ([10.252.140.14]) by orsmga003.jf.intel.com with ESMTP; 28 Dec 2018 14:07:55 -0800 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: johan.hedberg@gmail.com, inga.stotland@intel.com, marcel@holtmann.org, brian.gix@intel.com Subject: [PATCH BlueZ v6 16/26] mesh: restructure I/O for multiple nodes Date: Fri, 28 Dec 2018 14:07:35 -0800 Message-Id: <20181228220745.25147-17-brian.gix@intel.com> X-Mailer: git-send-email 2.14.5 In-Reply-To: <20181228220745.25147-1-brian.gix@intel.com> References: <20181228220745.25147-1-brian.gix@intel.com> Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Restructured access to Bluetooth Controllers to allow the usage of Multiple controllers, and potentially functionality tailored to Mesh specific features. --- mesh/mesh-io.c | 3 ++- mesh/mesh-io.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mesh/mesh-io.c b/mesh/mesh-io.c index 5cdfdc5ff..8cf6c486a 100644 --- a/mesh/mesh-io.c +++ b/mesh/mesh-io.c @@ -177,7 +177,8 @@ bool mesh_io_send(struct mesh_io *io, struct mesh_io_send_info *info, return false; } -bool mesh_io_send_cancel(struct mesh_io *io, uint8_t *pattern, uint8_t len) +bool mesh_io_send_cancel(struct mesh_io *io, const uint8_t *pattern, + uint8_t len) { io = l_queue_find(io_list, match_by_io, io); diff --git a/mesh/mesh-io.h b/mesh/mesh-io.h index 754f6129c..71d3cb980 100644 --- a/mesh/mesh-io.h +++ b/mesh/mesh-io.h @@ -96,4 +96,5 @@ bool mesh_set_filter(struct mesh_io *io, uint8_t filter_id, bool mesh_io_send(struct mesh_io *io, struct mesh_io_send_info *info, const uint8_t *data, uint16_t len); -bool mesh_io_send_cancel(struct mesh_io *io, uint8_t *pattern, uint8_t len); +bool mesh_io_send_cancel(struct mesh_io *io, const uint8_t *pattern, + uint8_t len); -- 2.14.5