Re: [RFT][PATCH] hwmon: (w83l786ng) Convert to devm_hwmon_device_register_with_groups

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

 



2014-06-24 22:38 GMT+08:00 Guenter Roeck <linux@xxxxxxxxxxxx>:
> On 06/24/2014 04:27 AM, Axel Lin wrote:
>>
>> Use ATTRIBUTE_GROUPS macro and devm_hwmon_device_register_with_groups() to
>> simplify the code a bit.
>>
>> The 'sensors' command never worked with this driver, fixed with this
>> conversion.
>>
> Hi Axel,
>
> You'd have to be a bit more specific here. Why ? It is not obvious to me.
> If you mean the 'name' attribute, that is created by the i2c subsystem.
I thought the 'name' attribute was missing, but since it's created by the i2c
subsystem, that would be fine.

>
> The driver is buggy, though. It shows the current fan speed as minimum fan
> speed.

I just sent a patch to fix this.

> Typical bug that can happen easily with function macros. But that is a
> different
> problem.
>
> The driver could also benefit from some cleanup. It wastes code space by
> using
> function macros instead of SENSOR_ATTR_2, and functions should be reordered
> to get rid of forward declarations.

ok. I'll address these issues.
Thanks for your review,
Axel

_______________________________________________
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