aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/adxl34x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/adxl34x.c')
-rw-r--r--drivers/input/misc/adxl34x.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c
index 09244804fb97..1cf72fe513e6 100644
--- a/drivers/input/misc/adxl34x.c
+++ b/drivers/input/misc/adxl34x.c
@@ -452,10 +452,10 @@ static ssize_t adxl34x_disable_store(struct device *dev,
452 const char *buf, size_t count) 452 const char *buf, size_t count)
453{ 453{
454 struct adxl34x *ac = dev_get_drvdata(dev); 454 struct adxl34x *ac = dev_get_drvdata(dev);
455 unsigned long val; 455 unsigned int val;
456 int error; 456 int error;
457 457
458 error = strict_strtoul(buf, 10, &val); 458 error = kstrtouint(buf, 10, &val);
459 if (error) 459 if (error)
460 return error; 460 return error;
461 461
@@ -541,10 +541,10 @@ static ssize_t adxl34x_rate_store(struct device *dev,
541 const char *buf, size_t count) 541 const char *buf, size_t count)
542{ 542{
543 struct adxl34x *ac = dev_get_drvdata(dev); 543 struct adxl34x *ac = dev_get_drvdata(dev);
544 unsigned long val; 544 unsigned char val;
545 int error; 545 int error;
546 546
547 error = strict_strtoul(buf, 10, &val); 547 error = kstrtou8(buf, 10, &val);
548 if (error) 548 if (error)
549 return error; 549 return error;
550 550
@@ -576,10 +576,10 @@ static ssize_t adxl34x_autosleep_store(struct device *dev,
576 const char *buf, size_t count) 576 const char *buf, size_t count)
577{ 577{
578 struct adxl34x *ac = dev_get_drvdata(dev); 578 struct adxl34x *ac = dev_get_drvdata(dev);
579 unsigned long val; 579 unsigned int val;
580 int error; 580 int error;
581 581
582 error = strict_strtoul(buf, 10, &val); 582 error = kstrtouint(buf, 10, &val);
583 if (error) 583 if (error)
584 return error; 584 return error;
585 585
@@ -623,13 +623,13 @@ static ssize_t adxl34x_write_store(struct device *dev,
623 const char *buf, size_t count) 623 const char *buf, size_t count)
624{ 624{
625 struct adxl34x *ac = dev_get_drvdata(dev); 625 struct adxl34x *ac = dev_get_drvdata(dev);
626 unsigned long val; 626 unsigned int val;
627 int error; 627 int error;
628 628
629 /* 629 /*
630 * This allows basic ADXL register write access for debug purposes. 630 * This allows basic ADXL register write access for debug purposes.
631 */ 631 */
632 error = strict_strtoul(buf, 16, &val); 632 error = kstrtouint(buf, 16, &val);
633 if (error) 633 if (error)
634 return error; 634 return error;
635 635