Return-Path: From: Peter Hurley To: David Herrmann , "Keren, Doron" , Marcel Holtmann CC: "linux-bluetooth@vger.kernel.org" , "Ilia, Kolominsky" , "Hadar, Amir" Date: Tue, 23 Aug 2011 11:47:28 -0400 Subject: Re: [PATCH] Bluetooth-next: Add incremental indexing in sysfs HCI connection name. Message-ID: <1314114448.4095.40.camel@THOR> References: <1313596884-8733-1-git-send-email-doronkeren@ti.com> <1313617329.3373.188.camel@aeonflux> <13872098A06B02418CF379A158C0F1460162C51B1A@dnce02.ent.ti.com> In-Reply-To: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 List-ID: SGkgRGF2aWQsIERvcm9uICYgTWFyY2VsLA0KDQpPbiBUaHUsIDIwMTEtMDgtMTggYXQgMDc6NDQg LTA0MDAsIERhdmlkIEhlcnJtYW5uIHdyb3RlOg0KPiBPbiBUaHUsIEF1ZyAxOCwgMjAxMSBhdCAx OjIxIFBNLCBLZXJlbiwgRG9yb24gPGRvcm9ua2VyZW5AdGkuY29tPiB3cm90ZToNCj4gPiBIaSBN YXJjZWwNCj4gPg0KPiA+PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiA+PiBGcm9tOiBN YXJjZWwgSG9sdG1hbm4gW21haWx0bzptYXJjZWxAaG9sdG1hbm4ub3JnXQ0KPiA+PiBTZW50OiBU aHVyc2RheSwgQXVndXN0IDE4LCAyMDExIDEyOjQyIEFNDQo+ID4+IFRvOiBkb3Jvbi5rZXJlbi5i bHVlekBnbWFpbC5jb20NCj4gPj4gQ2M6IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtlcm5lbC5vcmc7 IEtlcmVuLCBEb3JvbjsgSWxpYSwgS29sb21pbnNreQ0KPiA+PiBTdWJqZWN0OiBSZTogW1BBVENI XSBCbHVldG9vdGgtbmV4dDogQWRkIGluY3JlbWVudGFsIGluZGV4aW5nIGluIHN5c2ZzIEhDSQ0K PiA+PiBjb25uZWN0aW9uIG5hbWUuDQo+ID4+DQo+ID4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