Re: [drivers/misc/thinkpad_acpi.c] duplicate test if (level & TP_EC_FAN_FULLSPEED)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Roel Kluin <12o3l@...>
Cc: <len.brown@...>, <ibm-acpi@...>, <ibm-acpi-devel@...>, <linux-acpi@...>, lkml <linux-kernel@...>
Date: Monday, February 4, 2008 - 6:13 pm

>                 /* safety net should the EC not support AUTO
 >                  * or FULLSPEED mode bits and just ignore them */
 >                 if (level & TP_EC_FAN_FULLSPEED)
 >                         level |= 7;     /* safety min speed 7 */
 >                 else if (level & TP_EC_FAN_FULLSPEED)
 >                         level |= 4;     /* safety min speed 4 */
 > 
 > Note the duplicate test 'if (level & TP_EC_FAN_FULLSPEED)'. should
 > this be replaced by

Actually I suspect one of the two tests should be against TP_EC_FAN_AUTO
(based on the comment).
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [drivers/misc/thinkpad_acpi.c] duplicate test if (level ..., Roland Dreier, (Mon Feb 4, 6:13 pm)
Re: [PATCH][drivers/misc/thinkpad_acpi.c] duplicate test if ..., Henrique de Moraes Holschuh..., (Tue Feb 5, 1:05 am)
Re: [PATCH][drivers/misc/thinkpad_acpi.c] duplicate test if ..., Henrique de Moraes Holschuh..., (Wed Feb 6, 9:18 pm)