* [PATCH] iio: potentiometer: max5432: use KBUILD_MODNAME as driver name
@ 2022-08-14 17:00 Martin Kaiser
2022-08-14 20:10 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Martin Kaiser @ 2022-08-14 17:00 UTC (permalink / raw)
To: Jonathan Cameron, Lars-Peter Clausen
Cc: linux-iio, linux-kernel, Martin Kaiser
KBUILD_MODNAME evaulates to "max5432". Replace the hard coded driver name
with KBUILD_MODNAME.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/iio/potentiometer/max5432.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/potentiometer/max5432.c b/drivers/iio/potentiometer/max5432.c
index aed3b6ab82a2..a970bf9c99a7 100644
--- a/drivers/iio/potentiometer/max5432.c
+++ b/drivers/iio/potentiometer/max5432.c
@@ -121,7 +121,7 @@ MODULE_DEVICE_TABLE(of, max5432_dt_ids);
static struct i2c_driver max5432_driver = {
.driver = {
- .name = "max5432",
+ .name = KBUILD_MODNAME,
.of_match_table = max5432_dt_ids,
},
.probe = max5432_probe,
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: potentiometer: max5432: use KBUILD_MODNAME as driver name
2022-08-14 17:00 [PATCH] iio: potentiometer: max5432: use KBUILD_MODNAME as driver name Martin Kaiser
@ 2022-08-14 20:10 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2022-08-14 20:10 UTC (permalink / raw)
To: Martin Kaiser
Cc: Jonathan Cameron, Lars-Peter Clausen, linux-iio,
Linux Kernel Mailing List
On Sun, Aug 14, 2022 at 8:15 PM Martin Kaiser <martin@kaiser.cx> wrote:
>
> KBUILD_MODNAME evaulates to "max5432". Replace the hard coded driver name
evaluates
> with KBUILD_MODNAME.
NAK from me on the basis that this is (a loose) part of an ABI and if
somebody relies on it, renaming the module will break this.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-14 20:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-14 17:00 [PATCH] iio: potentiometer: max5432: use KBUILD_MODNAME as driver name Martin Kaiser
2022-08-14 20:10 ` Andy Shevchenko
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).