linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Frank Crawford <frank@crawford.emu.id.au>,
	Jean Delvare <jdelvare@suse.com>
Cc: linux-hwmon@vger.kernel.org
Subject: Re: [PATCH v1 2/2] hwmon: (it87) Added driver version to distinguish from dev version
Date: Sat, 21 Jan 2023 06:04:36 -0800	[thread overview]
Message-ID: <31a6d8dd-b501-6e9c-aa80-d695f8aab186@roeck-us.net> (raw)
In-Reply-To: <20230121085754.1693336-3-frank@crawford.emu.id.au>

On 1/21/23 00:57, Frank Crawford wrote:
> Add a driver version and log it on load, to make it easier to
> distinguish between the in-tree version and any development version from
> an external source.
> 

Sorry, no. Name your out of tree version as you want.

Guenter

> Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
> ---
>   drivers/hwmon/it87.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
> index a8a6a0ffee82..632ab3d50bc6 100644
> --- a/drivers/hwmon/it87.c
> +++ b/drivers/hwmon/it87.c
> @@ -59,6 +59,8 @@
>   #include <linux/acpi.h>
>   #include <linux/io.h>
>   
> +#define IT87_DRIVER_VERSION "v1.0-official"
> +
>   #define DRVNAME "it87"
>   
>   enum chips { it87, it8712, it8716, it8718, it8720, it8721, it8728, it8732,
> @@ -3398,6 +3400,8 @@ static int __init sm_it87_init(void)
>   	bool found = false;
>   	int i, err;
>   
> +	pr_info("it87 driver version %s\n", IT87_DRIVER_VERSION);
> +
>   	err = platform_driver_register(&it87_driver);
>   	if (err)
>   		return err;
> @@ -3470,6 +3474,7 @@ MODULE_PARM_DESC(fix_pwm_polarity,
>   		 "Force PWM polarity to active high (DANGEROUS)");
>   
>   MODULE_LICENSE("GPL");
> +MODULE_VERSION(IT87_DRIVER_VERSION);
>   
>   module_init(sm_it87_init);
>   module_exit(sm_it87_exit);


  reply	other threads:[~2023-01-21 14:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-21  8:57 [PATCH v1 0/2] hwmon: (it87) Minor cleanups for future development Frank Crawford
2023-01-21  8:57 ` [PATCH v1 1/2] hwmon: (it87) Group all related MODULE_PARM definitions together Frank Crawford
2023-01-24 13:51   ` Guenter Roeck
2023-01-21  8:57 ` [PATCH v1 2/2] hwmon: (it87) Added driver version to distinguish from dev version Frank Crawford
2023-01-21 14:04   ` Guenter Roeck [this message]
2023-01-21 23:30     ` Frank Crawford

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=31a6d8dd-b501-6e9c-aa80-d695f8aab186@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=frank@crawford.emu.id.au \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@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;
as well as URLs for NNTP newsgroup(s).