提交 f3ede209 编写于 作者: J Jani Nikula

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: NRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: NJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210825150623.28980-1-jani.nikula@intel.com
上级 66907633
......@@ -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);
}
/* 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__ */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册