Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1503489

Re: [PATCH] mcp3021: rework for DT support of reference-voltage

From Guenter Roeck <linux@roeck-us.net>
Newsgroups linux.kernel
Subject Re: [PATCH] mcp3021: rework for DT support of reference-voltage
Date 2016-10-19 03:30 +0200
Message-ID <stNRE-220-25@gated-at.bofh.it> (permalink)
References <stLwt-cZ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <clemens.gruber@pqgruber.com>
> ---
>  .../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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mcp3021: rework for DT support of reference-voltage Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-10-19 01:00 +0200
  Re: [PATCH] mcp3021: rework for DT support of reference-voltage Guenter Roeck <linux@roeck-us.net> - 2016-10-19 03:30 +0200
  Re: [PATCH] mcp3021: rework for DT support of reference-voltage Rob Herring <robh@kernel.org> - 2016-10-26 23:10 +0200

csiph-web