]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/pwrctrl: pwrseq: Rename private struct and pointers for consistency
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 15 Jan 2026 07:28:53 +0000 (12:58 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Jan 2026 19:23:37 +0000 (13:23 -0600)
commit2ba7c7bd2b0e22cca9a21e243a88bf407e7d0260
tree13d7153f03210321d8c161396e053f4ef151eb01
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
PCI/pwrctrl: pwrseq: Rename private struct and pointers for consistency

Previously the pwrseq, tc9563, and slot pwrctrl drivers used different
naming conventions for their private data structs and pointers to them,
which makes patches hard to read.

Rename structs, variables, and functions to reduce boiler-plate and start
with "pwrseq":

  struct pci_pwrctrl_pwrseq_data       -> struct pwrseq_pwrctrl
  struct pci_pwrctrl ctx               -> struct pci_pwrctrl pwrctrl
  struct pci_pwrctrl_pwrseq_data *data -> struct pwrseq_pwrctrl *pwrseq
  struct pci_pwrctrl_pwrseq_pdata      -> struct pwrseq_pwrctrl_pdata
  pci_pwrctrl_pwrseq_qcom_wcn_pdata    -> pwrseq_pwrctrl_qcom_wcn_pdata
  pci_pwrctrl_pwrseq_probe()           -> pwrseq_pwrctrl_probe()
  devm_pci_pwrctrl_pwrseq_power_off()  -> devm_pwrseq_pwrctrl_power_off()
  pci_pwrctrl_pwrseq_qcm_wcn_validate_device() -> pwrseq_pwrctrl_qcm_wcn_validate_device()

No functional change intended.

[bhelgaas: move "pwrseq" to beginning, also rename functions]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260115-pci-pwrctrl-rework-v5-1-9d26da3ce903@oss.qualcomm.com
drivers/pci/pwrctrl/pci-pwrctrl-pwrseq.c