Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756691AbcJSBY4 (ORCPT ); Tue, 18 Oct 2016 21:24:56 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:39910 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756464AbcJSBYq (ORCPT ); Tue, 18 Oct 2016 21:24:46 -0400 Date: Tue, 18 Oct 2016 18:24:42 -0700 From: Guenter Roeck To: Clemens Gruber Cc: linux-hwmon@vger.kernel.org, Jean Delvare , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mcp3021: rework for DT support of reference-voltage Message-ID: <20161019012442.GA30552@roeck-us.net> References: <20161018224444.11225-1-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161018224444.11225-1-clemens.gruber@pqgruber.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 36 On Wed, Oct 19, 2016 at 12:44:44AM +0200, Clemens Gruber wrote: > Support setting the reference voltage in the device tree. > Rework of driver structure, put chip specific data in a separate > structure and assign it depending on device id from platform data or > DT match. > Extend the device documentation and add new documentation for the > devicetree bindings. > Also change S_IRUGO to the better readable 0444, which fixes a > checkpatch warning. > > Signed-off-by: Clemens Gruber > --- > .../devicetree/bindings/hwmon/mcp3021.txt | 21 +++ This needs to be a separate patch. ... > +static int mcp3021_probe(struct i2c_client *client, > + const struct i2c_device_id *id); > +static int mcp3021_remove(struct i2c_client *client); > We are trying hard to get rid of functions declarations like this. Adding it means that the code is rearranged for no good reason. Please limit the changes to nececessary changes, and please refrain from rearranging it and from introducing your personal style. > -enum chips { > +enum { Another indication that you are making changes for no good reason. You may not like named enums, others do. That doesn't mean you can change the code to your liking. Please don't do that. Guenter