* [PATCH] hwmon: drivetemp: Add module alias
@ 2022-07-12 21:46 Linus Walleij
2022-07-13 13:35 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2022-07-12 21:46 UTC (permalink / raw)
To: Jean Delvare, Guenter Roeck; +Cc: linux-hwmon, Linus Walleij
Adding a MODULE_ALIAS() to drivetemp will make the driver easier
for modprobe to autoprobe.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/hwmon/drivetemp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hwmon/drivetemp.c b/drivers/hwmon/drivetemp.c
index 1eb37106a220..5bac2b0fc7bb 100644
--- a/drivers/hwmon/drivetemp.c
+++ b/drivers/hwmon/drivetemp.c
@@ -621,3 +621,4 @@ module_exit(drivetemp_exit);
MODULE_AUTHOR("Guenter Roeck <linus@roeck-us.net>");
MODULE_DESCRIPTION("Hard drive temperature monitor");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:drivetemp");
--
2.36.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] hwmon: drivetemp: Add module alias
2022-07-12 21:46 [PATCH] hwmon: drivetemp: Add module alias Linus Walleij
@ 2022-07-13 13:35 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2022-07-13 13:35 UTC (permalink / raw)
To: Linus Walleij; +Cc: Jean Delvare, linux-hwmon
On Tue, Jul 12, 2022 at 11:46:24PM +0200, Linus Walleij wrote:
> Adding a MODULE_ALIAS() to drivetemp will make the driver easier
> for modprobe to autoprobe.
>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Applied.
Thanks,
Guenter
> ---
> drivers/hwmon/drivetemp.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/hwmon/drivetemp.c b/drivers/hwmon/drivetemp.c
> index 1eb37106a220..5bac2b0fc7bb 100644
> --- a/drivers/hwmon/drivetemp.c
> +++ b/drivers/hwmon/drivetemp.c
> @@ -621,3 +621,4 @@ module_exit(drivetemp_exit);
> MODULE_AUTHOR("Guenter Roeck <linus@roeck-us.net>");
> MODULE_DESCRIPTION("Hard drive temperature monitor");
> MODULE_LICENSE("GPL");
> +MODULE_ALIAS("platform:drivetemp");
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-13 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-12 21:46 [PATCH] hwmon: drivetemp: Add module alias Linus Walleij
2022-07-13 13:35 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox