Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: temperature: Build mlx90635 with CONFIG_MLX90635
@ 2026-06-24  8:13 Pengpeng Hou
  2026-06-24 11:41 ` Andy Shevchenko
  2026-06-25  5:42 ` [PATCH v2] " Pengpeng Hou
  0 siblings, 2 replies; 6+ messages in thread
From: Pengpeng Hou @ 2026-06-24  8:13 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko
  Cc: Pengpeng Hou, linux-iio, linux-kernel

drivers/iio/temperature/Kconfig has a dedicated `MLX90635` option, but
the Makefile currently builds mlx90635.o under `CONFIG_MLX90632`.

This means enabling `CONFIG_MLX90635` alone does not carry its provider
object into the build, while enabling `CONFIG_MLX90632` unexpectedly
also builds mlx90635.o.

Gate mlx90635.o on the matching generated Kconfig symbol.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
---
 drivers/iio/temperature/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/temperature/Makefile b/drivers/iio/temperature/Makefile
--- a/drivers/iio/temperature/Makefile
+++ b/drivers/iio/temperature/Makefile
@@ -13,7 +13,7 @@ obj-$(CONFIG_MAX31856) += max31856.o
 obj-$(CONFIG_MAX31865) += max31865.o
 obj-$(CONFIG_MCP9600) += mcp9600.o
 obj-$(CONFIG_MLX90614) += mlx90614.o
 obj-$(CONFIG_MLX90632) += mlx90632.o
-obj-$(CONFIG_MLX90632) += mlx90635.o
+obj-$(CONFIG_MLX90635) += mlx90635.o
 obj-$(CONFIG_TMP006) += tmp006.o
 obj-$(CONFIG_TMP007) += tmp007.o
 obj-$(CONFIG_TMP117) += tmp117.o


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] iio: temperature: Build mlx90635 with CONFIG_MLX90635
  2026-06-24  8:13 [PATCH] iio: temperature: Build mlx90635 with CONFIG_MLX90635 Pengpeng Hou
@ 2026-06-24 11:41 ` Andy Shevchenko
  2026-06-25  5:42 ` [PATCH v2] " Pengpeng Hou
  1 sibling, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2026-06-24 11:41 UTC (permalink / raw)
  To: Pengpeng Hou
  Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
	linux-iio, linux-kernel

On Wed, Jun 24, 2026 at 04:13:09PM +0800, Pengpeng Hou wrote:
> drivers/iio/temperature/Kconfig has a dedicated `MLX90635` option, but
> the Makefile currently builds mlx90635.o under `CONFIG_MLX90632`.
> 
> This means enabling `CONFIG_MLX90635` alone does not carry its provider
> object into the build, while enabling `CONFIG_MLX90632` unexpectedly
> also builds mlx90635.o.
> 
> Gate mlx90635.o on the matching generated Kconfig symbol.

Good catch! Does it need a Fixes tag? I haven't checked if this is in
Jonathan's testing or togreg branch. If the latter, the Fixes tag is
a must.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2] iio: temperature: Build mlx90635 with CONFIG_MLX90635
  2026-06-24  8:13 [PATCH] iio: temperature: Build mlx90635 with CONFIG_MLX90635 Pengpeng Hou
  2026-06-24 11:41 ` Andy Shevchenko
@ 2026-06-25  5:42 ` Pengpeng Hou
  2026-06-25  6:43   ` Andy Shevchenko
  1 sibling, 1 reply; 6+ messages in thread
From: Pengpeng Hou @ 2026-06-25  5:42 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sa, Andy Shevchenko
  Cc: Crt Mori, Pengpeng Hou, linux-iio, linux-kernel, stable

drivers/iio/temperature/Kconfig has a dedicated MLX90635 option, but
the Makefile currently builds mlx90635.o under CONFIG_MLX90632.

This means enabling CONFIG_MLX90635 alone does not carry its provider
object into the build, while enabling CONFIG_MLX90632 unexpectedly also
builds mlx90635.o.

Gate mlx90635.o on the matching generated Kconfig symbol.

Fixes: a1d1ba5e1c28 ("iio: temperature: mlx90635 MLX90635 IR Temperature sensor")
Cc: stable@vger.kernel.org
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
---
Changes in v2:
- Add the Fixes tag after Andy asked whether one is needed.
- Add stable Cc because this is a released Kbuild symbol mismatch.

 drivers/iio/temperature/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/temperature/Makefile b/drivers/iio/temperature/Makefile
index f046bb2f8a98..192b65965a27 100644
--- a/drivers/iio/temperature/Makefile
+++ b/drivers/iio/temperature/Makefile
@@ -13,7 +13,7 @@ obj-$(CONFIG_MAX31856) += maxim_thermocouple.o
 obj-$(CONFIG_MAX31865) += max31865.o
 obj-$(CONFIG_MCP9600) += mcp9600.o
 obj-$(CONFIG_MLX90614) += mlx90614.o
 obj-$(CONFIG_MLX90632) += mlx90632.o
-obj-$(CONFIG_MLX90632) += mlx90635.o
+obj-$(CONFIG_MLX90635) += mlx90635.o
 obj-$(CONFIG_TMP006) += tmp006.o
 obj-$(CONFIG_TMP007) += tmp007.o
 obj-$(CONFIG_TMP117) += tmp117.o
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iio: temperature: Build mlx90635 with CONFIG_MLX90635
  2026-06-25  5:42 ` [PATCH v2] " Pengpeng Hou
@ 2026-06-25  6:43   ` Andy Shevchenko
  2026-06-25  7:54     ` Crt Mori
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2026-06-25  6:43 UTC (permalink / raw)
  To: Pengpeng Hou
  Cc: Jonathan Cameron, David Lechner, Nuno Sa, Andy Shevchenko,
	Crt Mori, linux-iio, linux-kernel, stable

On Thu, Jun 25, 2026 at 01:42:59PM +0800, Pengpeng Hou wrote:
> drivers/iio/temperature/Kconfig has a dedicated MLX90635 option, but
> the Makefile currently builds mlx90635.o under CONFIG_MLX90632.
> 
> This means enabling CONFIG_MLX90635 alone does not carry its provider
> object into the build, while enabling CONFIG_MLX90632 unexpectedly also
> builds mlx90635.o.
> 
> Gate mlx90635.o on the matching generated Kconfig symbol.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iio: temperature: Build mlx90635 with CONFIG_MLX90635
  2026-06-25  6:43   ` Andy Shevchenko
@ 2026-06-25  7:54     ` Crt Mori
  2026-07-01 21:31       ` Jonathan Cameron
  0 siblings, 1 reply; 6+ messages in thread
From: Crt Mori @ 2026-06-25  7:54 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Pengpeng Hou, Jonathan Cameron, David Lechner, Nuno Sa,
	Andy Shevchenko, linux-iio, linux-kernel, stable

Thanks for spotting this Pengpeng Hou; it's strange that nobody
noticed until now. I would like to apologize to everyone for this
mistake.

Acked-by: Crt Mori <cmo@melexis.com>

On Thu, 25 Jun 2026 at 08:43, Andy Shevchenko
<andriy.shevchenko@intel.com> wrote:
>
> On Thu, Jun 25, 2026 at 01:42:59PM +0800, Pengpeng Hou wrote:
> > drivers/iio/temperature/Kconfig has a dedicated MLX90635 option, but
> > the Makefile currently builds mlx90635.o under CONFIG_MLX90632.
> >
> > This means enabling CONFIG_MLX90635 alone does not carry its provider
> > object into the build, while enabling CONFIG_MLX90632 unexpectedly also
> > builds mlx90635.o.
> >
> > Gate mlx90635.o on the matching generated Kconfig symbol.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
>
> --
> With Best Regards,
> Andy Shevchenko
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] iio: temperature: Build mlx90635 with CONFIG_MLX90635
  2026-06-25  7:54     ` Crt Mori
@ 2026-07-01 21:31       ` Jonathan Cameron
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Cameron @ 2026-07-01 21:31 UTC (permalink / raw)
  To: Crt Mori
  Cc: Andy Shevchenko, Pengpeng Hou, David Lechner, Nuno Sa,
	Andy Shevchenko, linux-iio, linux-kernel, stable

On Thu, 25 Jun 2026 09:54:58 +0200
Crt Mori <cmo@melexis.com> wrote:

> Thanks for spotting this Pengpeng Hou; it's strange that nobody
> noticed until now. I would like to apologize to everyone for this
> mistake.
> 
> Acked-by: Crt Mori <cmo@melexis.com>
Applied to the fixes-togreg branch of iio.git

Thanks

Jonathan

> 
> On Thu, 25 Jun 2026 at 08:43, Andy Shevchenko
> <andriy.shevchenko@intel.com> wrote:
> >
> > On Thu, Jun 25, 2026 at 01:42:59PM +0800, Pengpeng Hou wrote:  
> > > drivers/iio/temperature/Kconfig has a dedicated MLX90635 option, but
> > > the Makefile currently builds mlx90635.o under CONFIG_MLX90632.
> > >
> > > This means enabling CONFIG_MLX90635 alone does not carry its provider
> > > object into the build, while enabling CONFIG_MLX90632 unexpectedly also
> > > builds mlx90635.o.
> > >
> > > Gate mlx90635.o on the matching generated Kconfig symbol.  
> >
> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> >
> > --
> > With Best Regards,
> > Andy Shevchenko
> >
> >  


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-07-01 21:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24  8:13 [PATCH] iio: temperature: Build mlx90635 with CONFIG_MLX90635 Pengpeng Hou
2026-06-24 11:41 ` Andy Shevchenko
2026-06-25  5:42 ` [PATCH v2] " Pengpeng Hou
2026-06-25  6:43   ` Andy Shevchenko
2026-06-25  7:54     ` Crt Mori
2026-07-01 21:31       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox