[PATCH] hwmon: (ads1015) Make gain and datarate configurable

Jean Delvare khali at linux-fr.org
Tue Mar 22 00:05:33 EST 2011


On Mon, 21 Mar 2011 11:37:45 +0100, Dirk Eibach wrote:
> Configuration for ads1015 gain and datarate is possible via
> devicetree or platform data.
> 
> This is a followup patch to previous ads1015 patches on Jean Delvares
> tree.
> 
> Changes since v1:
> - replaced exported_channels bitmask with an enable entry per channel
> - improved platform data example in Documentation
> - improved patch description
> 
> Changes since v2:
> - fixed spelling and whitespace in Documentation
> - marked default data_rate
> - replaced FS by full scale
> - removed structure definition from Documentation
> - used DIV_ROUND_UP()
> - improved comments
> - improved waiting for conversion
> - moved devicetree stuff to ads1015_get_channels_config_of()
> - renamed ads1015_get_exported_channels() to ads1015_get_channels_config()
> - renamed ADS1015_CONFIG_CHANNELS to ADS1015_CHANNELS
> - fixed some style inconsistencies
> 
> Signed-off-by: Dirk Eibach <eibach at gdsys.de>
> ---
>  .../devicetree/bindings/hwmon/ads1015.txt          |   88 +++++++++---
>  Documentation/hwmon/ads1015                        |   49 ++++---
>  drivers/hwmon/ads1015.c                            |  151 ++++++++++++++------
>  include/linux/i2c/ads1015.h                        |   10 ++-
>  4 files changed, 212 insertions(+), 86 deletions(-)

Applied, thanks.

I'll send all my hwmon patches to Linus later today.

-- 
Jean Delvare


More information about the devicetree-discuss mailing list