The patch titled
     hwmon: replace power-of-two test in drivers/hwmon/adt7470.c
has been added to the -mm tree.  Its filename is
     hwmon-replace-power-of-two-test-in-drivers-hwmon-adt7470c.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: hwmon: replace power-of-two test in drivers/hwmon/adt7470.c
From: "Robert P. J. Day" <[EMAIL PROTECTED]>

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]>
Cc: "Mark M. Hoffman" <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/hwmon/adt7470.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff -puN 
drivers/hwmon/adt7470.c~hwmon-replace-power-of-two-test-in-drivers-hwmon-adt7470c
 drivers/hwmon/adt7470.c
--- 
a/drivers/hwmon/adt7470.c~hwmon-replace-power-of-two-test-in-drivers-hwmon-adt7470c
+++ a/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;
 }
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch
arm-remove-reference-to-non-existent-mtd_obsolete_chips.patch
lvm-use-rounddown_pow_of_two-macro-for-simplicity.patch
hwmon-replace-power-of-two-test-in-drivers-hwmon-adt7470c.patch
pcmcia-net-use-roundup_pow_of_two-macro-instead-of-grotesque-loop.patch
blackfin-typo-config_rtc_bfin_module.patch
frv-move-dma-macros-to-scatterlisth-for-consistency.patch
m68knommu-remove-vestiges-of-non-existent-disktel.patch
uml-delete-some-unused-headers.patch
rtc-s3c-use-is_power_of_2-macro-for-simplicity.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to