Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1259802imm; Thu, 4 Oct 2018 10:34:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV62yTGcl2AzK6Bhv7SstPB+SLjOdUzzoIH8b8EK2wLeX9S62iARKCYdYV9ExH/idklQCcPNI X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr7790238plq.337.1538674448924; Thu, 04 Oct 2018 10:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538674448; cv=none; d=google.com; s=arc-20160816; b=SO7I7pAvZjc1LrV9tfMJn/j5kSCIT8SPwTdNBltrg+DejYEWOu+Z6frKF3Evctgsnr oeL+EPKRd4WU5w3KaFh3yquicYABMxQTm/iaPfbSSdRgXPfCH4ENzE1VU4ib3b5SDFwR GwXEXurdk+iTwGFIHX7mPsTdjRbQyx5n0T0HjetKNoQ8BtH9z9bGqcuQ/GkOGc+YTooc cYoYTKJJwoLp634J6C5ALsSOUo5YByzBHL+Ti+qWXbnTjJ63Fcg1HxAXqzXfYwdkLd/M fUg2phQ3aQy+F85CEwKpDb8YuJNnIWPuYlG8cDqiwa/tHzhB0irVOqGjvPe44d2NNCAD dKYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3y+ixJPU5deJfQaCAYwk+NrLgOzdpPsB/rbHU8Fd3sI=; b=eCJm+9sbtqHXU5YQ70FfoOpgCH5IQtPh5AlxkR9ubLBethGhslszqKv96/Irn5U+QW 6ggLzeY2IiQYLZRs6icwjgMYo43QtKu6lNu0B2mJfiCfJ/rCSuLpWF2oiy8/nJNUxxAJ dxq5DJ/166a9WZTuRuSe9KsmYXP3KXqNuKzPaGpQU9iPkiNdaoi2D/CgKuWEqHi2Vz/l AXDo//dsO7Dw7tRib3Z7ajw8pl4Wl8ipS+2gmiQEivq7Eooj4eYfTIdWtaSJHBLCPLwI HI6+wYUq9+jUEHdxLOzxlMc97xadwXRdL4b1exTjwKaoniZP2EsblccIzzUoLpi6/x2M OX3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q1XvDlcO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si4933575pgf.273.2018.10.04.10.33.52; Thu, 04 Oct 2018 10:34:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q1XvDlcO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727596AbeJEA14 (ORCPT + 99 others); Thu, 4 Oct 2018 20:27:56 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:37015 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727458AbeJEA14 (ORCPT ); Thu, 4 Oct 2018 20:27:56 -0400 Received: by mail-pf1-f195.google.com with SMTP id j23-v6so3732744pfi.4 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=kBGoTSeXY/Jna3vsuZ9uypo3umFVBN8GT2XxWxzJoICcGUsBnV6iGpGbPrGcoXYhwk FHU6I5rq2fA6qaCqoYwvSuxQuTtBhsLQ+p8+BUVznwk/QJX46VqbXVpC0pYwegpSGZ4v wWZ24UsyO1v8nheLGVRavkGGl+t+KcSdjybeHhp9ZdQDzsVWIXnCZVvWVBRT2JK2gyap al8UNVCCv8UFxnWGrdIN3GP/buQZ/3bzlrNIXzt6iKinn9tbErF+mNYpeXcpOZ0tYlBP zvtW0d8YS+L3w+03TCE+vJwdFOCLmv0U/3XQ82c1MwUan1WPCXf7lfESI2LK38qVYg5J /39w== X-Gm-Message-State: ABuFfoi5X7k5v+FnThDmmO62VS1ZrfvCywOwMzBOJjbXRmK3tfTuNc1v pPQHljBcPozDRdoZq/w+dbZ5lw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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