Commit acea356
iio: magnetometer: ak8975: fix wrong errno on return
The driver currently returns -EINVAL on polling timeout instead of
-ETIMEDOUT.
Replace return code for -ETIMEDOUT and remove unnecessary error
message as -ETIMEDOUT is a standard POSIX error. Also replace
instances of -EINVAL in comments.
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>1 parent 833ca88 commit acea356
1 file changed
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
| 665 | + | |
| 666 | + | |
669 | 667 | | |
670 | 668 | | |
671 | 669 | | |
| |||
695 | 693 | | |
696 | 694 | | |
697 | 695 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
| 696 | + | |
| 697 | + | |
702 | 698 | | |
703 | 699 | | |
704 | 700 | | |
705 | 701 | | |
706 | | - | |
| 702 | + | |
707 | 703 | | |
708 | 704 | | |
709 | 705 | | |
| |||
713 | 709 | | |
714 | 710 | | |
715 | 711 | | |
716 | | - | |
| 712 | + | |
717 | 713 | | |
718 | 714 | | |
719 | 715 | | |
| |||
0 commit comments