Commit 7bea41c4 authored by Bjorn Andersson's avatar Bjorn Andersson

soc: qcom: socinfo: Annotate switch cases with fall through

Introduce fall through annotations in the switch statements of
socinfo_debugfs_init() to silence compiler warnings.
Acked-by: default avatarVaishali Thakkar <vaishali.thakkar@linaro.org>
Fixes: 9c84c1e7 ("soc: qcom: socinfo: Expose custom attributes")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 05589b30
...@@ -323,6 +323,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, ...@@ -323,6 +323,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo,
debugfs_create_x32("raw_device_number", 0400, debugfs_create_x32("raw_device_number", 0400,
qcom_socinfo->dbg_root, qcom_socinfo->dbg_root,
&qcom_socinfo->info.raw_device_num); &qcom_socinfo->info.raw_device_num);
/* Fall through */
case SOCINFO_VERSION(0, 11): case SOCINFO_VERSION(0, 11):
case SOCINFO_VERSION(0, 10): case SOCINFO_VERSION(0, 10):
case SOCINFO_VERSION(0, 9): case SOCINFO_VERSION(0, 9):
...@@ -330,10 +331,12 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, ...@@ -330,10 +331,12 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo,
debugfs_create_u32("foundry_id", 0400, qcom_socinfo->dbg_root, debugfs_create_u32("foundry_id", 0400, qcom_socinfo->dbg_root,
&qcom_socinfo->info.foundry_id); &qcom_socinfo->info.foundry_id);
/* Fall through */
case SOCINFO_VERSION(0, 8): case SOCINFO_VERSION(0, 8):
case SOCINFO_VERSION(0, 7): case SOCINFO_VERSION(0, 7):
DEBUGFS_ADD(info, pmic_model); DEBUGFS_ADD(info, pmic_model);
DEBUGFS_ADD(info, pmic_die_rev); DEBUGFS_ADD(info, pmic_die_rev);
/* Fall through */
case SOCINFO_VERSION(0, 6): case SOCINFO_VERSION(0, 6):
qcom_socinfo->info.hw_plat_subtype = qcom_socinfo->info.hw_plat_subtype =
__le32_to_cpu(info->hw_plat_subtype); __le32_to_cpu(info->hw_plat_subtype);
...@@ -341,6 +344,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, ...@@ -341,6 +344,7 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo,
debugfs_create_u32("hardware_platform_subtype", 0400, debugfs_create_u32("hardware_platform_subtype", 0400,
qcom_socinfo->dbg_root, qcom_socinfo->dbg_root,
&qcom_socinfo->info.hw_plat_subtype); &qcom_socinfo->info.hw_plat_subtype);
/* Fall through */
case SOCINFO_VERSION(0, 5): case SOCINFO_VERSION(0, 5):
qcom_socinfo->info.accessory_chip = qcom_socinfo->info.accessory_chip =
__le32_to_cpu(info->accessory_chip); __le32_to_cpu(info->accessory_chip);
...@@ -348,23 +352,27 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, ...@@ -348,23 +352,27 @@ static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo,
debugfs_create_u32("accessory_chip", 0400, debugfs_create_u32("accessory_chip", 0400,
qcom_socinfo->dbg_root, qcom_socinfo->dbg_root,
&qcom_socinfo->info.accessory_chip); &qcom_socinfo->info.accessory_chip);
/* Fall through */
case SOCINFO_VERSION(0, 4): case SOCINFO_VERSION(0, 4):
qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver); qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver);
debugfs_create_u32("platform_version", 0400, debugfs_create_u32("platform_version", 0400,
qcom_socinfo->dbg_root, qcom_socinfo->dbg_root,
&qcom_socinfo->info.plat_ver); &qcom_socinfo->info.plat_ver);
/* Fall through */
case SOCINFO_VERSION(0, 3): case SOCINFO_VERSION(0, 3):
qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat); qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat);
debugfs_create_u32("hardware_platform", 0400, debugfs_create_u32("hardware_platform", 0400,
qcom_socinfo->dbg_root, qcom_socinfo->dbg_root,
&qcom_socinfo->info.hw_plat); &qcom_socinfo->info.hw_plat);
/* Fall through */
case SOCINFO_VERSION(0, 2): case SOCINFO_VERSION(0, 2):
qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver); qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver);
debugfs_create_u32("raw_version", 0400, qcom_socinfo->dbg_root, debugfs_create_u32("raw_version", 0400, qcom_socinfo->dbg_root,
&qcom_socinfo->info.raw_ver); &qcom_socinfo->info.raw_ver);
/* Fall through */
case SOCINFO_VERSION(0, 1): case SOCINFO_VERSION(0, 1):
DEBUGFS_ADD(info, build_id); DEBUGFS_ADD(info, build_id);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment