Commit 297d34e
platform/chrome: cros_ec_proto: Use ec_command for check_features
Use the existing cros_ec_command() for cros_ec_check_features(). This
eliminates an unnecessary duplication of the memory allocation/free and
memory copy code.
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20211004170716.86601-2-pmalani@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>1 parent 7ff2278 commit 297d34e
1 file changed
Lines changed: 3 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
816 | | - | |
817 | 816 | | |
818 | 817 | | |
819 | 818 | | |
820 | 819 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
| 820 | + | |
| 821 | + | |
831 | 822 | | |
832 | | - | |
833 | | - | |
| 823 | + | |
834 | 824 | | |
835 | | - | |
836 | | - | |
837 | 825 | | |
838 | 826 | | |
839 | 827 | | |
840 | 828 | | |
841 | | - | |
842 | | - | |
843 | 829 | | |
844 | 830 | | |
845 | 831 | | |
| |||
0 commit comments