Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ce9c2f449b9e6b68d3a71ba146d64c44c8945d8d
Commit:     ce9c2f449b9e6b68d3a71ba146d64c44c8945d8d
Parent:     5aebefb08682ebd67ea0b902950d00169e1451cb
Author:     Robert P. J. Day <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 6 03:21:42 2007 -0500
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Thu Feb 7 20:39:40 2008 -0500

    hwmon: (adt7470) Replace power-of-two test
    
    Since <linux/log2.h> already supplies a power-of-two test, there's no
    point in having this source file redefine it again.
    
    Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]>
    Acked-by: Jean Delvare <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
---
 drivers/hwmon/adt7470.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c
index 9810aaa..a215560 100644
--- a/drivers/hwmon/adt7470.c
+++ b/drivers/hwmon/adt7470.c
@@ -114,8 +114,6 @@ I2C_CLIENT_INSMOD_1(adt7470);
 /* sleep 1s while gathering temperature data */
 #define TEMP_COLLECTION_TIME   1000
 
-#define power_of_2(x)  (((x) & ((x) - 1)) == 0)
-
 /* datasheet says to divide this number by the fan reading to get fan rpm */
 #define FAN_PERIOD_TO_RPM(x)   ((90000 * 60) / (x))
 #define FAN_RPM_TO_PERIOD      FAN_PERIOD_TO_RPM
@@ -677,7 +675,7 @@ static int cvt_auto_temp(int input)
 {
        if (input == ADT7470_PWM_ALL_TEMPS)
                return 0;
-       if (input < 1 || !power_of_2(input))
+       if (input < 1 || !is_power_of_2(input))
                return -EINVAL;
        return ilog2(input) + 1;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to