Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Guenter Roeck
On Mon, Oct 01, 2012 at 11:28:21PM -0400, Vivien Didelot wrote:
> Hi Guenter,
> 
Hi Vivien,

[ ... ]

> > > + } else {
> > > + dev_dbg(>dev, "doesn't look like an "
> > > + "ADS7828 compatible device\n");
> > 
> > WARNING: quoted string split across lines
> > #190: FILE: drivers/hwmon/ads7828.c:196:
> > +   dev_dbg(>dev, "doesn't look like an 
> > "
> > +   "ADS7828 compatible device\n");
> Hum ok, so the reason for that is that it breaks the ability to grep a
> string... Makes sense.
> > 
> > Better:
> > dev_dbg(>dev,
> > "doesn't look like an ADS7828 
> > compatible device\n");
> This exceeds 80 chars, but I'll find a shorter message.

That is ok nowadays if it is due to a quoted string.

Guenter 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
Hi Guenter,

On Mon, 2012-10-01 at 18:20 -0700, Guenter Roeck wrote:
> On Mon, Oct 01, 2012 at 07:16:24PM -0400, Vivien Didelot wrote:
> > From: Guillaume Roguez 
> > 
> > The ADS7830 device is almost the same as the ADS7828,
> > except that it does 8-bit sampling, instead of 12-bit.
> > This patch extends the ads7828 driver to support this chip.
> > 
> > Signed-off-by: Guillaume Roguez 
> > Signed-off-by: Vivien Didelot 
> 
> Hi Guillaume,
> Hi Vivien,
> 
> couple of comments below.
> 
> > ---
> >  Documentation/hwmon/ads7828 | 12 --
> >  drivers/hwmon/Kconfig   |  7 +++---
> >  drivers/hwmon/ads7828.c | 58 
> > -
> >  3 files changed, 55 insertions(+), 22 deletions(-)
> > 
> > diff --git a/Documentation/hwmon/ads7828 b/Documentation/hwmon/ads7828
> > index 2bbebe6..4366a87 100644
> > --- a/Documentation/hwmon/ads7828
> > +++ b/Documentation/hwmon/ads7828
> > @@ -8,8 +8,15 @@ Supported chips:
> >  Datasheet: Publicly available at the Texas Instruments website :
> > http://focus.ti.com/lit/ds/symlink/ads7828.pdf
> >  
> > +  * Texas Instruments ADS7830
> > +Prefix: 'ads7830'
> > +Addresses scanned: I2C 0x48, 0x49, 0x4a, 0x4b
> > +Datasheet: Publicly available at the Texas Instruments website:
> > +   http://focus.ti.com/lit/ds/symlink/ads7830.pdf
> > +
> >  Authors:
> >  Steve Hardy 
> > +Guillaume Roguez 
> >  
> >  Module Parameters
> >  -
> > @@ -24,9 +31,10 @@ Module Parameters
> >  Description
> >  ---
> >  
> > -This driver implements support for the Texas Instruments ADS7828.
> > +This driver implements support for the Texas Instruments ADS7828, and 
> > ADS7830.
> >  
> 
> s/,//
Sounds like an abuse of the serial comma :-)
> 
> > -This device is a 12-bit 8-channel A-D converter.
> > +The ADS7828 device is a 12-bit 8-channel A/D converter, while the ADS7830 
> > does
> > +8-bit sampling.
> >  
> >  It can operate in single ended mode (8 +ve inputs) or in differential mode,
> >  where 4 differential pairs can be measured.
> > diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> > index 83e3e9d..960c8c5 100644
> > --- a/drivers/hwmon/Kconfig
> > +++ b/drivers/hwmon/Kconfig
> > @@ -1060,11 +1060,12 @@ config SENSORS_ADS1015
> >   will be called ads1015.
> >  
> >  config SENSORS_ADS7828
> > -   tristate "Texas Instruments ADS7828"
> > +   tristate "Texas Instruments ADS7828 and compatibles"
> > depends on I2C
> > help
> > - If you say yes here you get support for Texas Instruments ADS7828
> > - 12-bit 8-channel ADC device.
> > + If you say yes here you get support for Texas Instruments ADS7828 and
> > + ADS7830 8-channel A/D converters. ADS7828 resolution is 12-bit, while
> > + it is 8-bit on ADS7830.
> >  
> >   This driver can also be built as a module.  If so, the module
> >   will be called ads7828.
> > diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c
> > index fb3010d..91fc629 100644
> > --- a/drivers/hwmon/ads7828.c
> > +++ b/drivers/hwmon/ads7828.c
> > @@ -1,11 +1,13 @@
> >  /*
> > - * ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC
> > + * ads7828.c - driver for TI ADS7828 8-channel A/D converter and 
> > compatibles
> >   * (C) 2007 EADS Astrium
> >   *
> >   * This driver is based on the lm75 and other lm_sensors/hwmon drivers
> >   *
> >   * Written by Steve Hardy 
> >   *
> > + * ADS7830 support by Guillaume Roguez 
> > 
> > + *
> >   * For further information, see the Documentation/hwmon/ads7828 file.
> >   *
> >   * This program is free software; you can redistribute it and/or modify
> > @@ -41,6 +43,9 @@
> >  #define ADS7828_CMD_PD30x0C/* Internal ref ON && A/D ON */
> >  #define ADS7828_INT_VREF_MV2500/* Internal vref is 2.5V, 
> > 2500mV */
> >  
> > +/* List of supported devices */
> > +enum ads7828_chips { ads7828, ads7830 };
> > +
> >  /* Addresses to scan */
> >  static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
> > I2C_CLIENT_END };
> > @@ -53,9 +58,7 @@ module_param(se_input, bool, S_IRUGO);
> >  module_param(int_vref, bool, S_IRUGO);
> >  module_param(vref_mv, int, S_IRUGO);
> >  
> > -/* Global Variables */
> >  static u8 ads7828_cmd_byte; /* cmd byte without channel bits */
> 
> At some point we may have to look into the configuration ... using module
> parameters doesn't seem to be right here. Should be platform data or device
> tree. But that is for later ... just something to keep in mind.
> 
> > -static unsigned int ads7828_lsb_resol; /* resolution of the ADC sample lsb 
> > */
> >  
> >  /**
> >   * struct ads7828_data - client specific data
> > @@ -64,6 +67,8 @@ static unsigned int ads7828_lsb_resol; /* resolution of 
> > the ADC sample lsb */
> >   * @valid: Validity flag.
> >   * @last_updated:  Last updated time (in jiffies).
> >   * @adc_input: ADS7828_NCH samples.
> > + * 

Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Guenter Roeck
On Mon, Oct 01, 2012 at 07:16:24PM -0400, Vivien Didelot wrote:
> From: Guillaume Roguez 
> 
> The ADS7830 device is almost the same as the ADS7828,
> except that it does 8-bit sampling, instead of 12-bit.
> This patch extends the ads7828 driver to support this chip.
> 
> Signed-off-by: Guillaume Roguez 
> Signed-off-by: Vivien Didelot 

Hi Guillaume,
Hi Vivien,

couple of comments below.

> ---
>  Documentation/hwmon/ads7828 | 12 --
>  drivers/hwmon/Kconfig   |  7 +++---
>  drivers/hwmon/ads7828.c | 58 
> -
>  3 files changed, 55 insertions(+), 22 deletions(-)
> 
> diff --git a/Documentation/hwmon/ads7828 b/Documentation/hwmon/ads7828
> index 2bbebe6..4366a87 100644
> --- a/Documentation/hwmon/ads7828
> +++ b/Documentation/hwmon/ads7828
> @@ -8,8 +8,15 @@ Supported chips:
>  Datasheet: Publicly available at the Texas Instruments website :
> http://focus.ti.com/lit/ds/symlink/ads7828.pdf
>  
> +  * Texas Instruments ADS7830
> +Prefix: 'ads7830'
> +Addresses scanned: I2C 0x48, 0x49, 0x4a, 0x4b
> +Datasheet: Publicly available at the Texas Instruments website:
> +   http://focus.ti.com/lit/ds/symlink/ads7830.pdf
> +
>  Authors:
>  Steve Hardy 
> +Guillaume Roguez 
>  
>  Module Parameters
>  -
> @@ -24,9 +31,10 @@ Module Parameters
>  Description
>  ---
>  
> -This driver implements support for the Texas Instruments ADS7828.
> +This driver implements support for the Texas Instruments ADS7828, and 
> ADS7830.
>  

s/,//

> -This device is a 12-bit 8-channel A-D converter.
> +The ADS7828 device is a 12-bit 8-channel A/D converter, while the ADS7830 
> does
> +8-bit sampling.
>  
>  It can operate in single ended mode (8 +ve inputs) or in differential mode,
>  where 4 differential pairs can be measured.
> diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
> index 83e3e9d..960c8c5 100644
> --- a/drivers/hwmon/Kconfig
> +++ b/drivers/hwmon/Kconfig
> @@ -1060,11 +1060,12 @@ config SENSORS_ADS1015
> will be called ads1015.
>  
>  config SENSORS_ADS7828
> - tristate "Texas Instruments ADS7828"
> + tristate "Texas Instruments ADS7828 and compatibles"
>   depends on I2C
>   help
> -   If you say yes here you get support for Texas Instruments ADS7828
> -   12-bit 8-channel ADC device.
> +   If you say yes here you get support for Texas Instruments ADS7828 and
> +   ADS7830 8-channel A/D converters. ADS7828 resolution is 12-bit, while
> +   it is 8-bit on ADS7830.
>  
> This driver can also be built as a module.  If so, the module
> will be called ads7828.
> diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c
> index fb3010d..91fc629 100644
> --- a/drivers/hwmon/ads7828.c
> +++ b/drivers/hwmon/ads7828.c
> @@ -1,11 +1,13 @@
>  /*
> - * ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC
> + * ads7828.c - driver for TI ADS7828 8-channel A/D converter and compatibles
>   * (C) 2007 EADS Astrium
>   *
>   * This driver is based on the lm75 and other lm_sensors/hwmon drivers
>   *
>   * Written by Steve Hardy 
>   *
> + * ADS7830 support by Guillaume Roguez 
> 
> + *
>   * For further information, see the Documentation/hwmon/ads7828 file.
>   *
>   * This program is free software; you can redistribute it and/or modify
> @@ -41,6 +43,9 @@
>  #define ADS7828_CMD_PD3  0x0C/* Internal ref ON && A/D ON */
>  #define ADS7828_INT_VREF_MV  2500/* Internal vref is 2.5V, 2500mV */
>  
> +/* List of supported devices */
> +enum ads7828_chips { ads7828, ads7830 };
> +
>  /* Addresses to scan */
>  static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
>   I2C_CLIENT_END };
> @@ -53,9 +58,7 @@ module_param(se_input, bool, S_IRUGO);
>  module_param(int_vref, bool, S_IRUGO);
>  module_param(vref_mv, int, S_IRUGO);
>  
> -/* Global Variables */
>  static u8 ads7828_cmd_byte; /* cmd byte without channel bits */

At some point we may have to look into the configuration ... using module
parameters doesn't seem to be right here. Should be platform data or device
tree. But that is for later ... just something to keep in mind.

> -static unsigned int ads7828_lsb_resol; /* resolution of the ADC sample lsb */
>  
>  /**
>   * struct ads7828_data - client specific data
> @@ -64,6 +67,8 @@ static unsigned int ads7828_lsb_resol; /* resolution of the 
> ADC sample lsb */
>   * @valid:   Validity flag.
>   * @last_updated:Last updated time (in jiffies).
>   * @adc_input:   ADS7828_NCH samples.
> + * @lsb_resol:   Resolution of the A/D converter sample LSB.
> + * @read_channel:Function used to read a channel.
>   */
>  struct ads7828_data {
>   struct device *hwmon_dev;
> @@ -71,6 +76,8 @@ struct ads7828_data {
>   char valid;
>   unsigned long last_updated;
>   u16 adc_input[ADS7828_NCH];
> + unsigned int lsb_resol;
> + 

Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Guenter Roeck
On Mon, Oct 01, 2012 at 07:16:24PM -0400, Vivien Didelot wrote:
 From: Guillaume Roguez guillaume.rog...@savoirfairelinux.com
 
 The ADS7830 device is almost the same as the ADS7828,
 except that it does 8-bit sampling, instead of 12-bit.
 This patch extends the ads7828 driver to support this chip.
 
 Signed-off-by: Guillaume Roguez guillaume.rog...@savoirfairelinux.com
 Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com

Hi Guillaume,
Hi Vivien,

couple of comments below.

 ---
  Documentation/hwmon/ads7828 | 12 --
  drivers/hwmon/Kconfig   |  7 +++---
  drivers/hwmon/ads7828.c | 58 
 -
  3 files changed, 55 insertions(+), 22 deletions(-)
 
 diff --git a/Documentation/hwmon/ads7828 b/Documentation/hwmon/ads7828
 index 2bbebe6..4366a87 100644
 --- a/Documentation/hwmon/ads7828
 +++ b/Documentation/hwmon/ads7828
 @@ -8,8 +8,15 @@ Supported chips:
  Datasheet: Publicly available at the Texas Instruments website :
 http://focus.ti.com/lit/ds/symlink/ads7828.pdf
  
 +  * Texas Instruments ADS7830
 +Prefix: 'ads7830'
 +Addresses scanned: I2C 0x48, 0x49, 0x4a, 0x4b
 +Datasheet: Publicly available at the Texas Instruments website:
 +   http://focus.ti.com/lit/ds/symlink/ads7830.pdf
 +
  Authors:
  Steve Hardy sha...@redhat.com
 +Guillaume Roguez guillaume.rog...@savoirfairelinux.com
  
  Module Parameters
  -
 @@ -24,9 +31,10 @@ Module Parameters
  Description
  ---
  
 -This driver implements support for the Texas Instruments ADS7828.
 +This driver implements support for the Texas Instruments ADS7828, and 
 ADS7830.
  

s/,//

 -This device is a 12-bit 8-channel A-D converter.
 +The ADS7828 device is a 12-bit 8-channel A/D converter, while the ADS7830 
 does
 +8-bit sampling.
  
  It can operate in single ended mode (8 +ve inputs) or in differential mode,
  where 4 differential pairs can be measured.
 diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
 index 83e3e9d..960c8c5 100644
 --- a/drivers/hwmon/Kconfig
 +++ b/drivers/hwmon/Kconfig
 @@ -1060,11 +1060,12 @@ config SENSORS_ADS1015
 will be called ads1015.
  
  config SENSORS_ADS7828
 - tristate Texas Instruments ADS7828
 + tristate Texas Instruments ADS7828 and compatibles
   depends on I2C
   help
 -   If you say yes here you get support for Texas Instruments ADS7828
 -   12-bit 8-channel ADC device.
 +   If you say yes here you get support for Texas Instruments ADS7828 and
 +   ADS7830 8-channel A/D converters. ADS7828 resolution is 12-bit, while
 +   it is 8-bit on ADS7830.
  
 This driver can also be built as a module.  If so, the module
 will be called ads7828.
 diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c
 index fb3010d..91fc629 100644
 --- a/drivers/hwmon/ads7828.c
 +++ b/drivers/hwmon/ads7828.c
 @@ -1,11 +1,13 @@
  /*
 - * ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC
 + * ads7828.c - driver for TI ADS7828 8-channel A/D converter and compatibles
   * (C) 2007 EADS Astrium
   *
   * This driver is based on the lm75 and other lm_sensors/hwmon drivers
   *
   * Written by Steve Hardy sha...@redhat.com
   *
 + * ADS7830 support by Guillaume Roguez 
 guillaume.rog...@savoirfairelinux.com
 + *
   * For further information, see the Documentation/hwmon/ads7828 file.
   *
   * This program is free software; you can redistribute it and/or modify
 @@ -41,6 +43,9 @@
  #define ADS7828_CMD_PD3  0x0C/* Internal ref ON  A/D ON */
  #define ADS7828_INT_VREF_MV  2500/* Internal vref is 2.5V, 2500mV */
  
 +/* List of supported devices */
 +enum ads7828_chips { ads7828, ads7830 };
 +
  /* Addresses to scan */
  static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
   I2C_CLIENT_END };
 @@ -53,9 +58,7 @@ module_param(se_input, bool, S_IRUGO);
  module_param(int_vref, bool, S_IRUGO);
  module_param(vref_mv, int, S_IRUGO);
  
 -/* Global Variables */
  static u8 ads7828_cmd_byte; /* cmd byte without channel bits */

At some point we may have to look into the configuration ... using module
parameters doesn't seem to be right here. Should be platform data or device
tree. But that is for later ... just something to keep in mind.

 -static unsigned int ads7828_lsb_resol; /* resolution of the ADC sample lsb */
  
  /**
   * struct ads7828_data - client specific data
 @@ -64,6 +67,8 @@ static unsigned int ads7828_lsb_resol; /* resolution of the 
 ADC sample lsb */
   * @valid:   Validity flag.
   * @last_updated:Last updated time (in jiffies).
   * @adc_input:   ADS7828_NCH samples.
 + * @lsb_resol:   Resolution of the A/D converter sample LSB.
 + * @read_channel:Function used to read a channel.
   */
  struct ads7828_data {
   struct device *hwmon_dev;
 @@ -71,6 +76,8 @@ struct ads7828_data {
   char valid;
   unsigned long 

Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
Hi Guenter,

On Mon, 2012-10-01 at 18:20 -0700, Guenter Roeck wrote:
 On Mon, Oct 01, 2012 at 07:16:24PM -0400, Vivien Didelot wrote:
  From: Guillaume Roguez guillaume.rog...@savoirfairelinux.com
  
  The ADS7830 device is almost the same as the ADS7828,
  except that it does 8-bit sampling, instead of 12-bit.
  This patch extends the ads7828 driver to support this chip.
  
  Signed-off-by: Guillaume Roguez guillaume.rog...@savoirfairelinux.com
  Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com
 
 Hi Guillaume,
 Hi Vivien,
 
 couple of comments below.
 
  ---
   Documentation/hwmon/ads7828 | 12 --
   drivers/hwmon/Kconfig   |  7 +++---
   drivers/hwmon/ads7828.c | 58 
  -
   3 files changed, 55 insertions(+), 22 deletions(-)
  
  diff --git a/Documentation/hwmon/ads7828 b/Documentation/hwmon/ads7828
  index 2bbebe6..4366a87 100644
  --- a/Documentation/hwmon/ads7828
  +++ b/Documentation/hwmon/ads7828
  @@ -8,8 +8,15 @@ Supported chips:
   Datasheet: Publicly available at the Texas Instruments website :
  http://focus.ti.com/lit/ds/symlink/ads7828.pdf
   
  +  * Texas Instruments ADS7830
  +Prefix: 'ads7830'
  +Addresses scanned: I2C 0x48, 0x49, 0x4a, 0x4b
  +Datasheet: Publicly available at the Texas Instruments website:
  +   http://focus.ti.com/lit/ds/symlink/ads7830.pdf
  +
   Authors:
   Steve Hardy sha...@redhat.com
  +Guillaume Roguez guillaume.rog...@savoirfairelinux.com
   
   Module Parameters
   -
  @@ -24,9 +31,10 @@ Module Parameters
   Description
   ---
   
  -This driver implements support for the Texas Instruments ADS7828.
  +This driver implements support for the Texas Instruments ADS7828, and 
  ADS7830.
   
 
 s/,//
Sounds like an abuse of the serial comma :-)
 
  -This device is a 12-bit 8-channel A-D converter.
  +The ADS7828 device is a 12-bit 8-channel A/D converter, while the ADS7830 
  does
  +8-bit sampling.
   
   It can operate in single ended mode (8 +ve inputs) or in differential mode,
   where 4 differential pairs can be measured.
  diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
  index 83e3e9d..960c8c5 100644
  --- a/drivers/hwmon/Kconfig
  +++ b/drivers/hwmon/Kconfig
  @@ -1060,11 +1060,12 @@ config SENSORS_ADS1015
will be called ads1015.
   
   config SENSORS_ADS7828
  -   tristate Texas Instruments ADS7828
  +   tristate Texas Instruments ADS7828 and compatibles
  depends on I2C
  help
  - If you say yes here you get support for Texas Instruments ADS7828
  - 12-bit 8-channel ADC device.
  + If you say yes here you get support for Texas Instruments ADS7828 and
  + ADS7830 8-channel A/D converters. ADS7828 resolution is 12-bit, while
  + it is 8-bit on ADS7830.
   
This driver can also be built as a module.  If so, the module
will be called ads7828.
  diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c
  index fb3010d..91fc629 100644
  --- a/drivers/hwmon/ads7828.c
  +++ b/drivers/hwmon/ads7828.c
  @@ -1,11 +1,13 @@
   /*
  - * ads7828.c - lm_sensors driver for ads7828 12-bit 8-channel ADC
  + * ads7828.c - driver for TI ADS7828 8-channel A/D converter and 
  compatibles
* (C) 2007 EADS Astrium
*
* This driver is based on the lm75 and other lm_sensors/hwmon drivers
*
* Written by Steve Hardy sha...@redhat.com
*
  + * ADS7830 support by Guillaume Roguez 
  guillaume.rog...@savoirfairelinux.com
  + *
* For further information, see the Documentation/hwmon/ads7828 file.
*
* This program is free software; you can redistribute it and/or modify
  @@ -41,6 +43,9 @@
   #define ADS7828_CMD_PD30x0C/* Internal ref ON  A/D ON */
   #define ADS7828_INT_VREF_MV2500/* Internal vref is 2.5V, 
  2500mV */
   
  +/* List of supported devices */
  +enum ads7828_chips { ads7828, ads7830 };
  +
   /* Addresses to scan */
   static const unsigned short normal_i2c[] = { 0x48, 0x49, 0x4a, 0x4b,
  I2C_CLIENT_END };
  @@ -53,9 +58,7 @@ module_param(se_input, bool, S_IRUGO);
   module_param(int_vref, bool, S_IRUGO);
   module_param(vref_mv, int, S_IRUGO);
   
  -/* Global Variables */
   static u8 ads7828_cmd_byte; /* cmd byte without channel bits */
 
 At some point we may have to look into the configuration ... using module
 parameters doesn't seem to be right here. Should be platform data or device
 tree. But that is for later ... just something to keep in mind.
 
  -static unsigned int ads7828_lsb_resol; /* resolution of the ADC sample lsb 
  */
   
   /**
* struct ads7828_data - client specific data
  @@ -64,6 +67,8 @@ static unsigned int ads7828_lsb_resol; /* resolution of 
  the ADC sample lsb */
* @valid: Validity flag.
* @last_updated:  Last updated time (in jiffies).
* @adc_input: ADS7828_NCH samples.
  + * @lsb_resol: Resolution of the A/D 

Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Guenter Roeck
On Mon, Oct 01, 2012 at 11:28:21PM -0400, Vivien Didelot wrote:
 Hi Guenter,
 
Hi Vivien,

[ ... ]

   + } else {
   + dev_dbg(client-dev, doesn't look like an 
   + ADS7828 compatible device\n);
  
  WARNING: quoted string split across lines
  #190: FILE: drivers/hwmon/ads7828.c:196:
  +   dev_dbg(client-dev, doesn't look like an 
  
  +   ADS7828 compatible device\n);
 Hum ok, so the reason for that is that it breaks the ability to grep a
 string... Makes sense.
  
  Better:
  dev_dbg(client-dev,
  doesn't look like an ADS7828 
  compatible device\n);
 This exceeds 80 chars, but I'll find a shorter message.

That is ok nowadays if it is due to a quoted string.

Guenter 
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/