X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fusb%2Finput%2Faiptek.c;h=81caa0dfec175089a3b8fda8cbc5bdd03d2cb9d4;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=b0261f8a60ac0b9ebd33831c119dc73212293b3b;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/usb/input/aiptek.c b/drivers/usb/input/aiptek.c index b0261f8a6..81caa0dfe 100644 --- a/drivers/usb/input/aiptek.c +++ b/drivers/usb/input/aiptek.c @@ -1324,7 +1324,7 @@ store_tabletXtilt(struct device *dev, const char *buf, size_t count) if (strcmp(buf, "disable") == 0) { aiptek->newSetting.xTilt = AIPTEK_TILT_DISABLE; } else { - x = (int)simple_strtol(buf, NULL, 10); + x = (int)simple_strtol(buf, 0, 10); if (x >= AIPTEK_TILT_MIN && x <= AIPTEK_TILT_MAX) { aiptek->newSetting.xTilt = x; } @@ -1366,7 +1366,7 @@ store_tabletYtilt(struct device *dev, const char *buf, size_t count) if (strcmp(buf, "disable") == 0) { aiptek->newSetting.yTilt = AIPTEK_TILT_DISABLE; } else { - y = (int)simple_strtol(buf, NULL, 10); + y = (int)simple_strtol(buf, 0, 10); if (y >= AIPTEK_TILT_MIN && y <= AIPTEK_TILT_MAX) { aiptek->newSetting.yTilt = y; } @@ -1399,7 +1399,7 @@ store_tabletJitterDelay(struct device *dev, const char *buf, size_t count) if (aiptek == NULL) return 0; - aiptek->newSetting.jitterDelay = (int)simple_strtol(buf, NULL, 10); + aiptek->newSetting.jitterDelay = (int)simple_strtol(buf, 0, 10); return count; } @@ -1430,7 +1430,7 @@ store_tabletProgrammableDelay(struct device *dev, const char *buf, size_t count) if (aiptek == NULL) return 0; - aiptek->newSetting.programmableDelay = (int)simple_strtol(buf, NULL, 10); + aiptek->newSetting.programmableDelay = (int)simple_strtol(buf, 0, 10); return count; } @@ -1805,7 +1805,7 @@ store_tabletWheel(struct device *dev, const char *buf, size_t count) if (aiptek == NULL) return 0; - aiptek->newSetting.wheel = (int)simple_strtol(buf, NULL, 10); + aiptek->newSetting.wheel = (int)simple_strtol(buf, 0, 10); return count; }