Hi Guenter,
On Wed, 12 Jun 2024 at 20:04, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
Agree. Will update v5 with below changes:
Hi Naresh,
On Tue, Jun 04, 2024 at 06:17:39PM +0530, Naresh Solanki wrote:
Update hwmon init with info instead of group. The hwmon info structure
in more flexible to describe sensor attribute & easy to maintian.
Signed-off-by: Naresh Solanki <naresh.solanki@xxxxxxxxxxxxx>
---
After applying your patch, I get the following errors in my module tests.
Testing max6639 ...
temp1_crit: Suspected underflow: [min=0, read 255000, written -2147483648]
temp1_emergency: Suspected underflow: [min=0, read 255000, written -2147483648]
temp1_max: Suspected underflow: [min=0, read 255000, written -2147483648]
temp2_crit: Suspected underflow: [min=0, read 255000, written -2147483648]
temp2_emergency: Suspected underflow: [min=0, read 255000, written -2147483648]
temp2_max: Suspected underflow: [min=0, read 255000, written -2147483648]
That was not seen before. Problem is that your set functions pass 'unsigned long'
as parameter, converting negative values into large positive ones.
For set functions, I'll change 'unsigned long' to long.
For get functions, will do typecast as below:
*crit = (long)val * 1000;
Please let me know if you have any other suggestions.