From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756705AbaDQMqE (ORCPT ); Thu, 17 Apr 2014 08:46:04 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:48044 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164AbaDQMqB (ORCPT ); Thu, 17 Apr 2014 08:46:01 -0400 Date: Thu, 17 Apr 2014 13:45:48 +0100 From: One Thousand Gnomes To: Thierry Reding Cc: Chew Chiau Ee , Mika Westerberg , Alan Cox , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] pwm_lpss: Add support for PCI devices Message-ID: <20140417134548.0ff5ffb4@alan.etchedpixels.co.uk> In-Reply-To: <20140417113458.GC32603@ulmo> References: <1397672338-3510-1-git-send-email-chiau.ee.chew@intel.com> <20140417110756.GB32603@ulmo> <20140417121643.2c07ecfc@alan.etchedpixels.co.uk> <20140417113458.GC32603@ulmo> Organization: Intel Corporation X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > But if you prefer not to do the split that's fine with me too. I'd prefer not to split it. The real fix is to have modm_ functions akin to devm_ but that's another story 8) > > > > +static const struct pwm_lpss_boardinfo byt_info = { > > > > > > What does byt_ stand for? > > > > Baytrail. > > Okay, that could use a comment since it's not mentioned anywhere else > and the PCI IDs don't give it away either. Agreed (it's btw a general Intel thing that devices end up known by a TLA but it's a good point that they are not entirely well known outside Intel) > > > > > -static int pwm_lpss_probe(struct platform_device *pdev) > > > > +static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, > > > > + struct resource *r, struct pwm_lpss_boardinfo *info) > > > > > > Indentation is odd here. Please align arguments one subsequent lines > > > with those of the first. > > > > That doesn't appear to be present in CodingStyle or indeed most of the > > kernel. > > I'm used to it in the PWM subsystem and I'd like to keep it that way for > consistency. Fair enough Alan