Commit 45ce19eb authored by Joe Perches's avatar Joe Perches Committed by Alex Deucher

AMD POWERPLAY: Use fallthrough;

Convert the various uses of fallthrough comments to fallthrough;

Done via script
Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe@perches.com/Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ded33f36
...@@ -1250,7 +1250,7 @@ static void smu7_set_dpm_event_sources(struct pp_hwmgr *hwmgr, uint32_t sources) ...@@ -1250,7 +1250,7 @@ static void smu7_set_dpm_event_sources(struct pp_hwmgr *hwmgr, uint32_t sources)
switch (sources) { switch (sources) {
default: default:
pr_err("Unknown throttling event sources."); pr_err("Unknown throttling event sources.");
/* fall through */ fallthrough;
case 0: case 0:
protection = false; protection = false;
/* src is unused */ /* src is unused */
...@@ -3698,12 +3698,12 @@ static int smu7_request_link_speed_change_before_state_change( ...@@ -3698,12 +3698,12 @@ static int smu7_request_link_speed_change_before_state_change(
data->force_pcie_gen = PP_PCIEGen2; data->force_pcie_gen = PP_PCIEGen2;
if (current_link_speed == PP_PCIEGen2) if (current_link_speed == PP_PCIEGen2)
break; break;
/* fall through */ fallthrough;
case PP_PCIEGen2: case PP_PCIEGen2:
if (0 == amdgpu_acpi_pcie_performance_request(hwmgr->adev, PCIE_PERF_REQ_GEN2, false)) if (0 == amdgpu_acpi_pcie_performance_request(hwmgr->adev, PCIE_PERF_REQ_GEN2, false))
break; break;
#endif #endif
/* fall through */ fallthrough;
default: default:
data->force_pcie_gen = smu7_get_current_pcie_speed(hwmgr); data->force_pcie_gen = smu7_get_current_pcie_speed(hwmgr);
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