Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: lpass-sc7180: Avoid an extra "struct dev_pm_ops"

The two devices managed by lpasscorecc-sc7180.c each had their own
"struct dev_pm_ops". This is not needed. They are exactly the same and
the structure is "static const" so it can't possible change. combine
the two. This matches what's done for sc7280.

This should be a noop other than saving a few bytes.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221104064055.3.I90ba14a47683a484f26531a08f7b46ace7f0a8a9@changeid

authored by

Douglas Anderson and committed by
Bjorn Andersson
e3ad6c3f ff1ccf59

+3 -7
+3 -7
drivers/clk/qcom/lpasscorecc-sc7180.c
··· 459 459 }; 460 460 MODULE_DEVICE_TABLE(of, lpass_core_cc_sc7180_match_table); 461 461 462 - static const struct dev_pm_ops lpass_core_cc_pm_ops = { 462 + static const struct dev_pm_ops lpass_pm_ops = { 463 463 SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) 464 464 }; 465 465 ··· 468 468 .driver = { 469 469 .name = "lpass_core_cc-sc7180", 470 470 .of_match_table = lpass_core_cc_sc7180_match_table, 471 - .pm = &lpass_core_cc_pm_ops, 471 + .pm = &lpass_pm_ops, 472 472 }, 473 - }; 474 - 475 - static const struct dev_pm_ops lpass_hm_pm_ops = { 476 - SET_RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) 477 473 }; 478 474 479 475 static struct platform_driver lpass_hm_sc7180_driver = { ··· 477 481 .driver = { 478 482 .name = "lpass_hm-sc7180", 479 483 .of_match_table = lpass_hm_sc7180_match_table, 480 - .pm = &lpass_hm_pm_ops, 484 + .pm = &lpass_pm_ops, 481 485 }, 482 486 }; 483 487