]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: smem: a few last cleanups
authorAlex Elder <elder@linaro.org>
Tue, 26 Jun 2018 00:58:56 +0000 (19:58 -0500)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 21:57:11 +0000 (16:57 -0500)
commit5a4737de14ff21a95877c743e8d8ffcacf2af1b7
tree2144c7661e3ace4b315f0c2d6f28c9ce532694db
parented53f259a6c550165540cc6ae85774a6c51ec78f
soc: qcom: smem: a few last cleanups

This patch contains several small cleanups:
  - In qcom_smem_enumerate_partitions(), change the "local_host"
    argument to have 16 bit unsigned type
  - Also in qcom_smem_enumerate_partitions(), change the type of
    the "host0" and "host1" local variables to be u16
  - Fix error messages reporting host ids to use the right format
    specifier
  - Shorten the error messages as well, to fit on one line
  - Add a compile-time check to ensure the local host value passed
    to qcom_smem_enumerate_partitions() is in range

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smem.c