public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mihai Carabas <mihai.carabas@oracle.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-kernel@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v1 1/3] pvpanic: Keep single style across modules
Date: Mon, 30 Aug 2021 09:28:43 +0300	[thread overview]
Message-ID: <93c42686-8283-615f-e24f-b94bea24ee88@oracle.com> (raw)
In-Reply-To: <20210829124354.81653-1-andriy.shevchenko@linux.intel.com>

La 29.08.2021 15:43, Andy Shevchenko a scris:
> We have different style on where we place module_*() and MODULE_*() macros.
> Inherit the style from the original module (now pvpanic-mmio.c).
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com
> ---
>   drivers/misc/pvpanic/pvpanic-pci.c | 14 ++++++--------
>   drivers/misc/pvpanic/pvpanic.c     |  3 +--
>   2 files changed, 7 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/misc/pvpanic/pvpanic-pci.c b/drivers/misc/pvpanic/pvpanic-pci.c
> index 741116b3d995..7d1220f4c95b 100644
> --- a/drivers/misc/pvpanic/pvpanic-pci.c
> +++ b/drivers/misc/pvpanic/pvpanic-pci.c
> @@ -22,11 +22,6 @@ MODULE_AUTHOR("Mihai Carabas <mihai.carabas@oracle.com>");
>   MODULE_DESCRIPTION("pvpanic device driver ");
>   MODULE_LICENSE("GPL");
>   
> -static const struct pci_device_id pvpanic_pci_id_tbl[]  = {
> -	{ PCI_DEVICE(PCI_VENDOR_ID_REDHAT, PCI_DEVICE_ID_REDHAT_PVPANIC)},
> -	{}
> -};
> -
>   static ssize_t capability_show(struct device *dev,
>   			       struct device_attribute *attr, char *buf)
>   {
> @@ -99,6 +94,12 @@ static int pvpanic_pci_probe(struct pci_dev *pdev,
>   	return devm_pvpanic_probe(&pdev->dev, pi);
>   }
>   
> +static const struct pci_device_id pvpanic_pci_id_tbl[]  = {
> +	{ PCI_DEVICE(PCI_VENDOR_ID_REDHAT, PCI_DEVICE_ID_REDHAT_PVPANIC)},
> +	{}
> +};
> +MODULE_DEVICE_TABLE(pci, pvpanic_pci_id_tbl);
> +
>   static struct pci_driver pvpanic_pci_driver = {
>   	.name =         "pvpanic-pci",
>   	.id_table =     pvpanic_pci_id_tbl,
> @@ -107,7 +108,4 @@ static struct pci_driver pvpanic_pci_driver = {
>   		.dev_groups = pvpanic_pci_dev_groups,
>   	},
>   };
> -
> -MODULE_DEVICE_TABLE(pci, pvpanic_pci_id_tbl);
> -
>   module_pci_driver(pvpanic_pci_driver);
> diff --git a/drivers/misc/pvpanic/pvpanic.c b/drivers/misc/pvpanic/pvpanic.c
> index 02b807c788c9..fb5411dfd614 100644
> --- a/drivers/misc/pvpanic/pvpanic.c
> +++ b/drivers/misc/pvpanic/pvpanic.c
> @@ -99,6 +99,7 @@ static int pvpanic_init(void)
>   
>   	return 0;
>   }
> +module_init(pvpanic_init);
>   
>   static void pvpanic_exit(void)
>   {
> @@ -106,6 +107,4 @@ static void pvpanic_exit(void)
>   					 &pvpanic_panic_nb);
>   
>   }
> -
> -module_init(pvpanic_init);
>   module_exit(pvpanic_exit);



      parent reply	other threads:[~2021-08-30  6:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 12:43 [PATCH v1 1/3] pvpanic: Keep single style across modules Andy Shevchenko
2021-08-29 12:43 ` [PATCH v1 2/3] pvpanic: Fix typos in the comments Andy Shevchenko
2021-08-30  6:29   ` Mihai Carabas
2021-08-29 12:43 ` [PATCH v1 3/3] pvpanic: Indentation fixes here and there Andy Shevchenko
2021-08-30  6:29   ` Mihai Carabas
2021-08-30  6:28 ` Mihai Carabas [this message]

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=93c42686-8283-615f-e24f-b94bea24ee88@oracle.com \
    --to=mihai.carabas@oracle.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox