Re: [PATCH 10/17] drivers/hwmon/adt7470.c: fix checkpatch issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 08, 2012 at 05:23:33PM +0100, Frans Meulenbroeks wrote:
> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@xxxxxxxxx>
> ---
>  drivers/hwmon/adt7470.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c
> index c6d1ce0..cad7f1a 100644
> --- a/drivers/hwmon/adt7470.c
> +++ b/drivers/hwmon/adt7470.c
> @@ -1131,8 +1131,7 @@ static SENSOR_DEVICE_ATTR(pwm3_auto_channels_temp, S_IWUSR | S_IRUGO,
>  static SENSOR_DEVICE_ATTR(pwm4_auto_channels_temp, S_IWUSR | S_IRUGO,
>  		    show_pwm_auto_temp, set_pwm_auto_temp, 3);
> 
> -static struct attribute *adt7470_attr[] =
> -{
> +static struct attribute *adt7470_attr[] = {
>  	&dev_attr_alarm_mask.attr,
>  	&dev_attr_num_temp_sensors.attr,
>  	&dev_attr_auto_update_interval.attr,
> @@ -1276,7 +1275,8 @@ static int adt7470_probe(struct i2c_client *client,
> 
>  	/* Register sysfs hooks */
>  	data->attrs.attrs = adt7470_attr;
> -	if ((err = sysfs_create_group(&client->dev.kobj, &data->attrs)))
> +	err = sysfs_create_group(&client->dev.kobj, &data->attrs);
> +	if (err)
>  		goto exit_free;
> 
>  	data->hwmon_dev = hwmon_device_register(&client->dev);

Acked-by: Darrick J. Wong <djwong@xxxxxxxxxx>
> -- 
> 1.7.8.2
> 
> 
> _______________________________________________
> lm-sensors mailing list
> lm-sensors@xxxxxxxxxxxxxx
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
> 


_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux