All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: linux-kernel@vger.kernel.org,
	Kyungmin Park <kyungmin.park@samsung.com>,
	Javier Martinez Canillas <javier@osg.samsung.com>,
	Laxman Dewangan <ldewangan@nvidia.com>,
	Chaitanya Bandi <bandik@nvidia.com>,
	Mallikarjun Kasoju <mkasoju@nvidia.com>
Subject: Re: [PATCH 4/5] mfd: max77620: make it explicitly non-modular
Date: Wed, 8 Jun 2016 15:48:19 +0100	[thread overview]
Message-ID: <20160608144819.GP14888@dell> (raw)
In-Reply-To: <1464914390-23520-5-git-send-email-paul.gortmaker@windriver.com>

On Thu, 02 Jun 2016, Paul Gortmaker wrote:

> The Kconfig currently controlling compilation of this code is:
> 
> drivers/mfd/Kconfig:config MFD_MAX77620
> drivers/mfd/Kconfig:    bool "Maxim Semiconductor MAX77620 and MAX20024 PMIC Support"
> 
> ...meaning that it currently is not being built as a module by anyone.
> 
> Lets remove the modular code that is essentially orphaned, so that
> when reading the driver there is no doubt it is builtin-only.
> 
> Since module_i2c_driver() uses the same init level priority as
> builtin_i2c_driver() the init ordering remains unchanged with
> this commit.
> 
> Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
> 
> We also delete the MODULE_LICENSE tag etc. since all that information
> was (or is now) contained at the top of the file in the comments.
> 
> Cc: Lee Jones <lee.jones@linaro.org>
> Cc: Laxman Dewangan <ldewangan@nvidia.com>
> Cc: Chaitanya Bandi <bandik@nvidia.com>
> Cc: Mallikarjun Kasoju <mkasoju@nvidia.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
>  drivers/mfd/max77620.c | 12 ++----------
>  1 file changed, 2 insertions(+), 10 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/max77620.c b/drivers/mfd/max77620.c
> index 199d261990be..84a830598fc9 100644
> --- a/drivers/mfd/max77620.c
> +++ b/drivers/mfd/max77620.c
> @@ -31,7 +31,7 @@
>  #include <linux/interrupt.h>
>  #include <linux/mfd/core.h>
>  #include <linux/mfd/max77620.h>
> -#include <linux/module.h>
> +#include <linux/init.h>
>  #include <linux/of.h>
>  #include <linux/of_device.h>
>  #include <linux/regmap.h>
> @@ -566,7 +566,6 @@ static const struct i2c_device_id max77620_id[] = {
>  	{"max20024", MAX20024},
>  	{},
>  };
> -MODULE_DEVICE_TABLE(i2c, max77620_id);
>  
>  static const struct dev_pm_ops max77620_pm_ops = {
>  	SET_SYSTEM_SLEEP_PM_OPS(max77620_i2c_suspend, max77620_i2c_resume)
> @@ -580,11 +579,4 @@ static struct i2c_driver max77620_driver = {
>  	.probe = max77620_probe,
>  	.id_table = max77620_id,
>  };
> -
> -module_i2c_driver(max77620_driver);
> -
> -MODULE_DESCRIPTION("MAX77620/MAX20024 Multi Function Device Core Driver");
> -MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
> -MODULE_AUTHOR("Chaitanya Bandi <bandik@nvidia.com>");
> -MODULE_AUTHOR("Mallikarjun Kasoju <mkasoju@nvidia.com>");
> -MODULE_LICENSE("GPL v2");
> +builtin_i2c_driver(max77620_driver);

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

  reply	other threads:[~2016-06-08 14:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-03  0:39 [PATCH v2 0/5] mfd: Make max drivers explicitly non-modular Paul Gortmaker
2016-06-03  0:39 ` [PATCH 1/5] mfd: max8925-i2c: Make it " Paul Gortmaker
2016-06-08 14:47   ` Lee Jones
2016-06-03  0:39 ` [PATCH 2/5] mfd: max8997: " Paul Gortmaker
2016-06-08 14:47   ` Lee Jones
2016-06-03  0:39 ` [PATCH 3/5] mfd: max8998: " Paul Gortmaker
2016-06-08 14:48   ` Lee Jones
2016-06-03  0:39 ` [PATCH 4/5] mfd: max77620: make " Paul Gortmaker
2016-06-08 14:48   ` Lee Jones [this message]
2016-06-03  0:39 ` [PATCH 5/5] mfd: max77843: Make " Paul Gortmaker
2016-06-08 14:48   ` Lee Jones

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=20160608144819.GP14888@dell \
    --to=lee.jones@linaro.org \
    --cc=bandik@nvidia.com \
    --cc=javier@osg.samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=ldewangan@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkasoju@nvidia.com \
    --cc=paul.gortmaker@windriver.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.