[lm-sensors] [PATCH] drivers/hwmon: remove duplicated defines

Jean Delvare khali at linux-fr.org
Fri Nov 9 14:52:59 CET 2007


Hi Nicolas,

On Wed, 7 Nov 2007 13:28:59 +0100, Nicolas Kaiser wrote:
> Remove duplicated defines.

Obviously correct, thanks.

> 
> Signed-off-by: Nicolas Kaiser <nikai at nikai.net>

Acked-by: Jean Delvare <khali at linux-fr.org>

> ---
> 
>  drivers/hwmon/w83793.c |    5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> --- a/drivers/hwmon/w83793.c	2007-11-07 11:28:29.000000000 +0100
> +++ b/drivers/hwmon/w83793.c	2007-11-07 13:08:54.000000000 +0100
> @@ -131,6 +131,7 @@
>  #define PWM_DUTY			0
>  #define PWM_START			1
>  #define PWM_NONSTOP			2
> +#define PWM_STOP_TIME			3
>  #define W83793_REG_PWM(index, nr)	(((nr) == 0 ? 0xb3 : \
>  					 (nr) == 1 ? 0x220 : 0x218) + (index))
>  
> @@ -407,10 +408,6 @@
>  	return count;
>  }
>  
> -#define PWM_DUTY			0
> -#define PWM_START			1
> -#define PWM_NONSTOP			2
> -#define PWM_STOP_TIME			3
>  static ssize_t
>  show_pwm(struct device *dev, struct device_attribute *attr, char *buf)
>  {
> 

-- 
Jean Delvare




More information about the lm-sensors mailing list