Commit 4cff988
iio: magnetometer: ak8975: avoid using temporary variable
Avoid using temporary variable in ak8975_read_axis(). With that being done,
the clamp_t() call becomes idiomatic in the driver and can be factored out
to a helper later on (and if needed).
Signed-off-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 c0b3561 commit 4cff988
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
744 | | - | |
745 | 744 | | |
746 | 745 | | |
747 | 746 | | |
| |||
778 | 777 | | |
779 | 778 | | |
780 | 779 | | |
781 | | - | |
782 | | - | |
| 780 | + | |
| 781 | + | |
783 | 782 | | |
784 | 783 | | |
785 | 784 | | |
| |||
0 commit comments