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=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_MUTT 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 356AFC64EB8 for ; Thu, 4 Oct 2018 17:33:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E86722084D for ; Thu, 4 Oct 2018 17:33:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="Q1XvDlcO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E86722084D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbeJEA14 (ORCPT ); Thu, 4 Oct 2018 20:27:56 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38097 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727422AbeJEA14 (ORCPT ); Thu, 4 Oct 2018 20:27:56 -0400 Received: by mail-pg1-f193.google.com with SMTP id r77-v6so3478619pgr.5 for ; Thu, 04 Oct 2018 10:33:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=3y+ixJPU5deJfQaCAYwk+NrLgOzdpPsB/rbHU8Fd3sI=; b=Q1XvDlcOBp9xfcOP1k8lQuOMQ03Tpt7KDVEUhiWQQlnOOhKaidPdVEru5BZQU48gxi sTMXHYTNMt23iuBN7NJvRZa911IdJLf32qxcbxbuJr1TAq6m361sX6mMsGBVjyyYQU74 KpSY60hRw7pMkbLF1POCgjm1oSeVlV001CakY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=3y+ixJPU5deJfQaCAYwk+NrLgOzdpPsB/rbHU8Fd3sI=; b=P9Ivso2Wd1NpVZAN4qrqQbCpo5BYxpKhe1SkCPBlr2eSXyKf7fT8dzta9Q3syM9MsT NrQBdX13c/s2suN9SEiys5B2l2yIh4fMOnUqvGB2VZvYgpv0VUIX5rJBpciN/edcl+u7 FHB+bIFzDeucRXgHJ40KIaeFWLTe71dE5QnRtuLJN2ixq0/caZyE4zP3HZdAIVuM81cV TM/z6fQXLirob3tPALIRZL8K3I96pcqeHvrPIXtq5Y100cJ46H0pCb27w37XJU5HDj5b 3IGxt/2RYxWMshcSvqe7g3iJRL6mYXlP3liSt4EFAnZZD5twI5RodKICWetB5zjRg+wZ lkpA== X-Gm-Message-State: ABuFfoh1vtN5VF+rpBKxd+RC+530ebmJezdlWFh1lhNDphbftYZ6F+qO oW3tlL3DF0TEsxZqTpVDmUddog== X-Google-Smtp-Source: ACcGV62sgEJCIkv3LkMYesABq57gX0P6o8tB/++x+A6iEtTiKXxOxvOhvDl8e1az+QM5iUthQwE3sA== X-Received: by 2002:a63:4563:: with SMTP id u35-v6mr6731187pgk.30.1538674419857; Thu, 04 Oct 2018 10:33:39 -0700 (PDT) Received: from localhost ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id x73-v6sm8302160pfk.139.2018.10.04.10.33.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 10:33:39 -0700 (PDT) Date: Thu, 4 Oct 2018 10:33:38 -0700 From: Matthias Kaehlcke To: Sinan Kaya Cc: Balakrishna Godavarthi , Greg Kroah-Hartman , "Rafael J . Wysocki" , Sakari Ailus , Marcin Wojtas , Andy Shevchenko Andy Shevchenko , Marcel Holtmann , Johan Hedberg , linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, Loic Poulain , Brian Norris Subject: Re: [PATCH v4 1/2] Bluetooth: Add device_get_bd_address() Message-ID: <20181004173338.GL22824@google.com> References: <20180927004810.124185-1-mka@chromium.org> <20180927004810.124185-2-mka@chromium.org> <20180927171305.GG22824@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180927171305.GG22824@google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Thu, Sep 27, 2018 at 10:13:05AM -0700, Matthias Kaehlcke wrote: > On Thu, Sep 27, 2018 at 12:47:06PM -0400, Sinan Kaya wrote: > > On 9/27/2018 12:41 PM, Balakrishna Godavarthi wrote: > > >  void bt_sock_reclassify_lock(struct sock *sk, int proto); > > > > > > +int device_get_bd_address(struct device *dev, bdaddr_t *bd_addr); > > > > Maybe change the API name to start with bt_ and get rid of device_? > > device_ indicates that we get the BD_ADDR for a 'struct device' and > not for e.g. a 'struct fwnode_handle'. > > Anyway with this version of the patch fwnode_get_bd_address() has been > scrapped and it might never be introduced again, so I'm open to change > the name to bt_ if there is a general preference for it. Marcel, can you live with this being added to the Bluetooth code base instead of property? Also if you'd prefer the function to be named bt_get_bd_address() let me know. Cheers Matthias