All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: twl4030-power: drop dead machine_is_*() macros
@ 2026-06-03 12:52 Sascha Hauer
  2026-06-03 12:58 ` Andreas Kemnade
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2026-06-03 12:52 UTC (permalink / raw)
  To: Aaro Koskinen, Andreas Kemnade, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Lee Jones
  Cc: linux-omap, linux-kernel, Sascha Hauer

OMAP LDP and 3430SDP are converted to dt in [1] and [2], the
corresponding machine_is_*() macros always expand to 0. Drop them and
with it the now unnecessary inclusion of mach-types.h.

[1] e92fc4f04a34a ("ARM: OMAP2+: Drop legacy board file for LDP")
[2] 1b383f44aabc8 ("ARM: OMAP2+: Drop board file for 3430sdp")

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 drivers/mfd/twl4030-power.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/mfd/twl4030-power.c b/drivers/mfd/twl4030-power.c
index 0bca948ab6bae..b6251a2a3078c 100644
--- a/drivers/mfd/twl4030-power.c
+++ b/drivers/mfd/twl4030-power.c
@@ -30,8 +30,6 @@
 #include <linux/property.h>
 #include <linux/of.h>
 
-#include <asm/mach-types.h>
-
 static u8 twl4030_start_script_address = 0x2b;
 
 /* Register bits for P1, P2 and P3_SW_EVENTS */
@@ -294,8 +292,7 @@ twl4030_config_wakeup12_sequence(const struct twl4030_power_data *pdata,
 	if (err)
 		goto out;
 
-	if (pdata->ac_charger_quirk || machine_is_omap_3430sdp() ||
-	    machine_is_omap_ldp()) {
+	if (pdata->ac_charger_quirk) {
 		/* Disabling AC charger effect on sleep-active transitions */
 		err = twl_i2c_read_u8(TWL_MODULE_PM_MASTER, &data,
 				      R_CFG_P1_TRANSITION);

---
base-commit: ba3e43a9e601636f5edb54e259a74f96ca3b8fd8
change-id: 20260603-mfd-remove-mach-types-h-bab96314bd7d

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>


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

* Re: [PATCH] mfd: twl4030-power: drop dead machine_is_*() macros
  2026-06-03 12:52 [PATCH] mfd: twl4030-power: drop dead machine_is_*() macros Sascha Hauer
@ 2026-06-03 12:58 ` Andreas Kemnade
  2026-06-03 13:19   ` Sascha Hauer
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Kemnade @ 2026-06-03 12:58 UTC (permalink / raw)
  To: Sascha Hauer
  Cc: Aaro Koskinen, Kevin Hilman, Roger Quadros, Tony Lindgren,
	Lee Jones, linux-omap, linux-kernel

On Wed, 03 Jun 2026 14:52:34 +0200
Sascha Hauer <s.hauer@pengutronix.de> wrote:

> OMAP LDP and 3430SDP are converted to dt in [1] and [2], the
> corresponding machine_is_*() macros always expand to 0. Drop them and
> with it the now unnecessary inclusion of mach-types.h.
> 
> [1] e92fc4f04a34a ("ARM: OMAP2+: Drop legacy board file for LDP")
> [2] 1b383f44aabc8 ("ARM: OMAP2+: Drop board file for 3430sdp")
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

already in -next

Regards
Andreas

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

* Re: [PATCH] mfd: twl4030-power: drop dead machine_is_*() macros
  2026-06-03 12:58 ` Andreas Kemnade
@ 2026-06-03 13:19   ` Sascha Hauer
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2026-06-03 13:19 UTC (permalink / raw)
  To: Andreas Kemnade
  Cc: Sascha Hauer, Aaro Koskinen, Kevin Hilman, Roger Quadros,
	Tony Lindgren, Lee Jones, linux-omap, linux-kernel

On 2026-06-03 14:58, Andreas Kemnade wrote:
> On Wed, 03 Jun 2026 14:52:34 +0200
> Sascha Hauer <s.hauer@pengutronix.de> wrote:
> 
> > OMAP LDP and 3430SDP are converted to dt in [1] and [2], the
> > corresponding machine_is_*() macros always expand to 0. Drop them and
> > with it the now unnecessary inclusion of mach-types.h.
> > 
> > [1] e92fc4f04a34a ("ARM: OMAP2+: Drop legacy board file for LDP")
> > [2] 1b383f44aabc8 ("ARM: OMAP2+: Drop board file for 3430sdp")
> > 
> > Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> 
> already in -next

I am impressed. After ten years this sits dead in the tree two people
manage to patch this at the same time ;)

Great, then disregard this patch.

Regards,
 Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

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

end of thread, other threads:[~2026-06-03 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 12:52 [PATCH] mfd: twl4030-power: drop dead machine_is_*() macros Sascha Hauer
2026-06-03 12:58 ` Andreas Kemnade
2026-06-03 13:19   ` Sascha Hauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.