Return-Path: Date: Wed, 28 Mar 2012 17:14:05 +0300 From: Andrei Emeltchenko To: Joao Paulo Rechi Vita Cc: linux-bluetooth@vger.kernel.org, dh.herrmann@googlemail.com, chen.ganir@ti.com Subject: Re: [RFC 2/8] HoG: register ATTIO callbacks Message-ID: <20120328141402.GA31354@aemeltch-MOBL1> References: <1332887487-13601-1-git-send-email-jprvita@openbossa.org> <1332887487-13601-3-git-send-email-jprvita@openbossa.org> <20120328082641.GA21905@aemeltch-MOBL1> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 In-Reply-To: Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jo?o, On Wed, Mar 28, 2012 at 10:55:18AM -0300, Joao Paulo Rechi Vita wrote: > Hello Andrei, > > 2012/3/28 Andrei Emeltchenko : > > Hi Jo?o, > > > > Minor comments: > > > > On Tue, Mar 27, 2012 at 07:31:21PM -0300, Jo?o Paulo Rechi Vita wrote: > > ... > >> +static struct hog_device *hog_device_new(struct btd_device *device, > >> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? const char *path) > >> +{ > > ... > >> + > >> + ? ? hogdev->attioid = btd_device_add_attio_callback(device, > >> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? attio_connected_cb, > >> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? attio_disconnected_cb, > >> + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? hogdev); > > > > What is the coding style for the userspace? Shall it be at least the same? > > > > Unless something has changed lately we use the kernel coding style. I > don't see where I didn't follow it here, but I may be missing > something. Can you please point me what I'm missing if that is the > case? I mean are those parameters aligned to the right or at "(". Best regards Andrei Emeltchenko