Commit 6feba6a
PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32()
Let's delete the private function cpr_read_efuse() since it does the
basically the same thing as the new API call
nvmem_cell_read_variable_le_u32().
Differences between the new API call and the old private function:
* less error printing (I assume this is OK).
* will give an error if the value doesn't fit in 32-bits (the old code
would have truncated silently).
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Niklas Cassel <nks@flawful.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20210521134437.v2.1.Id1c70158722750aec0673d60c12e46a9c66bbfed@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>1 parent 18785c9 commit 6feba6a
1 file changed
Lines changed: 5 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | 804 | | |
837 | 805 | | |
838 | 806 | | |
| |||
843 | 811 | | |
844 | 812 | | |
845 | 813 | | |
846 | | - | |
847 | | - | |
| 814 | + | |
848 | 815 | | |
849 | 816 | | |
850 | 817 | | |
| |||
863 | 830 | | |
864 | 831 | | |
865 | 832 | | |
866 | | - | |
| 833 | + | |
867 | 834 | | |
868 | 835 | | |
869 | 836 | | |
| |||
932 | 899 | | |
933 | 900 | | |
934 | 901 | | |
935 | | - | |
| 902 | + | |
936 | 903 | | |
937 | 904 | | |
938 | 905 | | |
| |||
1001 | 968 | | |
1002 | 969 | | |
1003 | 970 | | |
1004 | | - | |
| 971 | + | |
1005 | 972 | | |
1006 | 973 | | |
1007 | 974 | | |
| |||
1701 | 1668 | | |
1702 | 1669 | | |
1703 | 1670 | | |
1704 | | - | |
| 1671 | + | |
1705 | 1672 | | |
1706 | 1673 | | |
1707 | 1674 | | |
| |||
0 commit comments