All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org, Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [Intel-gfx] [PATCH] drm/i915/pci: rename functions to have i915_pci prefix
Date: Wed, 25 Aug 2021 11:26:15 -0400	[thread overview]
Message-ID: <YSZhFypIGty4XvPO@intel.com> (raw)
In-Reply-To: <20210825150623.28980-1-jani.nikula@intel.com>

On Wed, Aug 25, 2021 at 06:06:23PM +0300, Jani Nikula wrote:
> 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>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/i915/i915_module.c |  4 ++--
>  drivers/gpu/drm/i915/i915_pci.c    |  4 ++--
>  drivers/gpu/drm/i915/i915_pci.h    | 12 ++++++++----
>  3 files changed, 12 insertions(+), 8 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_module.c b/drivers/gpu/drm/i915/i915_module.c
> index d8b4482c69d0..ab2295dd4500 100644
> --- a/drivers/gpu/drm/i915/i915_module.c
> +++ b/drivers/gpu/drm/i915/i915_module.c
> @@ -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 },
>  };
> diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
> index 96cfd6427cec..146f7e39182a 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -1235,12 +1235,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);
>  }
> diff --git a/drivers/gpu/drm/i915/i915_pci.h b/drivers/gpu/drm/i915/i915_pci.h
> index b386f319f52e..ee048c238174 100644
> --- a/drivers/gpu/drm/i915/i915_pci.h
> +++ b/drivers/gpu/drm/i915/i915_pci.h
> @@ -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__ */
> -- 
> 2.20.1
> 

  reply	other threads:[~2021-08-25 15:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-25 15:06 [Intel-gfx] [PATCH] drm/i915/pci: rename functions to have i915_pci prefix Jani Nikula
2021-08-25 15:26 ` Rodrigo Vivi [this message]
2021-08-26  8:41   ` Jani Nikula
2021-08-25 20:36 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-08-26  3:03 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YSZhFypIGty4XvPO@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.