linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Paul Gortmaker <paul.gortmaker@windriver.com>,
	linux-kernel@vger.kernel.org
Cc: Richard Purdie <rpurdie@rpsys.net>,
	Jacek Anaszewski <j.anaszewski@samsung.com>,
	linux-leds@vger.kernel.org
Subject: Re: [PATCH] leds: make triggers explicitly non-modular
Date: Tue, 16 Aug 2016 22:39:48 +0200	[thread overview]
Message-ID: <57B37A14.7050409@gmail.com> (raw)
In-Reply-To: <20160815205448.20843-1-paul.gortmaker@windriver.com>

Hi Paul,

On 08/15/2016 10:54 PM, Paul Gortmaker wrote:
> The Kconfig currently controlling compilation of this code is:
>
> drivers/leds/trigger/Kconfig:menuconfig LEDS_TRIGGERS
> drivers/leds/trigger/Kconfig:   bool "LED Trigger support"
>
> ...meaning that it currently is not being built as a module by anyone.
>
> Lets remove the couple traces of modular infrastructure use, so that
> when reading the driver there is no doubt it is builtin-only.
>
> We also delete the MODULE_LICENSE tag etc. since all that information
> is already contained at the top of the file in the comments.
>
> We don't replace module.h with init.h since the file doesn't need that.
> However it does use EXPORT_SYMBOL, so we add the export.h header.
>
> Cc: Richard Purdie <rpurdie@rpsys.net>
> Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
> Cc: linux-leds@vger.kernel.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
>   drivers/leds/led-triggers.c | 6 +-----
>   1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led-triggers.c
> index c92702a684ce..f0b3d101994b 100644
> --- a/drivers/leds/led-triggers.c
> +++ b/drivers/leds/led-triggers.c
> @@ -11,7 +11,7 @@
>    *
>    */
>
> -#include <linux/module.h>
> +#include <linux/export.h>
>   #include <linux/kernel.h>
>   #include <linux/list.h>
>   #include <linux/spinlock.h>
> @@ -357,7 +357,3 @@ void led_trigger_unregister_simple(struct led_trigger *trig)
>   	kfree(trig);
>   }
>   EXPORT_SYMBOL_GPL(led_trigger_unregister_simple);
> -
> -MODULE_AUTHOR("Richard Purdie");
> -MODULE_LICENSE("GPL");
> -MODULE_DESCRIPTION("LED Triggers Core");
>

Thanks for the patch, applied.

-- 
Best regards,
Jacek Anaszewski

      reply	other threads:[~2016-08-16 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-15 20:54 [PATCH] leds: make triggers explicitly non-modular Paul Gortmaker
2016-08-16 20:39 ` Jacek Anaszewski [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=57B37A14.7050409@gmail.com \
    --to=jacek.anaszewski@gmail.com \
    --cc=j.anaszewski@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=rpurdie@rpsys.net \
    /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;
as well as URLs for NNTP newsgroup(s).