drm/i915/pci: rename functions to have i915_pci prefix
Follow the usual naming conventions. While at it, fix i915_pci.h SPDX license comment format and add header include guards. Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210825150623.28980-1-jani.nikula@intel.com
This commit is contained in:
Родитель
669076334b
Коммит
f3ede209d4
|
@ -67,8 +67,8 @@ static const struct {
|
|||
{ .init = i915_mock_selftests },
|
||||
{ .init = i915_pmu_init,
|
||||
.exit = i915_pmu_exit },
|
||||
{ .init = i915_register_pci_driver,
|
||||
.exit = i915_unregister_pci_driver },
|
||||
{ .init = i915_pci_register_driver,
|
||||
.exit = i915_pci_unregister_driver },
|
||||
{ .init = i915_perf_sysctl_register,
|
||||
.exit = i915_perf_sysctl_unregister },
|
||||
};
|
||||
|
|
|
@ -1216,12 +1216,12 @@ static struct pci_driver i915_pci_driver = {
|
|||
.driver.pm = &i915_pm_ops,
|
||||
};
|
||||
|
||||
int i915_register_pci_driver(void)
|
||||
int i915_pci_register_driver(void)
|
||||
{
|
||||
return pci_register_driver(&i915_pci_driver);
|
||||
}
|
||||
|
||||
void i915_unregister_pci_driver(void)
|
||||
void i915_pci_unregister_driver(void)
|
||||
{
|
||||
pci_unregister_driver(&i915_pci_driver);
|
||||
}
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
/* SPDX-License-Identifier: MIT */
|
||||
/*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Copyright © 2021 Intel Corporation
|
||||
*/
|
||||
|
||||
int i915_register_pci_driver(void);
|
||||
void i915_unregister_pci_driver(void);
|
||||
#ifndef __I915_PCI_H__
|
||||
#define __I915_PCI_H__
|
||||
|
||||
int i915_pci_register_driver(void);
|
||||
void i915_pci_unregister_driver(void);
|
||||
|
||||
#endif /* __I915_PCI_H__ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче