All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH leds] turris-omnia-mcu-interface.h: Move macro definitions outside of enums
@ 2024-12-15 21:13 Marek Behún
  2024-12-17 14:51 ` (subset) " Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Behún @ 2024-12-15 21:13 UTC (permalink / raw)
  To: Lee Jones; +Cc: linux-leds, Marek Behún

Move the definitions of enumerator related macros outside of the
enumerator definitions.

Link: https://lore.kernel.org/linux-leds/20241212183357.GK7139@google.com/
Signed-off-by: Marek Behún <kabel@kernel.org>
---
 include/linux/turris-omnia-mcu-interface.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/linux/turris-omnia-mcu-interface.h b/include/linux/turris-omnia-mcu-interface.h
index 06c94e032c6f..38b45ab00053 100644
--- a/include/linux/turris-omnia-mcu-interface.h
+++ b/include/linux/turris-omnia-mcu-interface.h
@@ -241,16 +241,18 @@ enum omnia_int_e {
 
 enum omnia_cmd_led_mode_e {
 	OMNIA_CMD_LED_MODE_LED_MASK	= GENMASK(3, 0),
-#define OMNIA_CMD_LED_MODE_LED(_l)	FIELD_PREP(OMNIA_CMD_LED_MODE_LED_MASK, _l)
 	OMNIA_CMD_LED_MODE_USER		= BIT(4),
 };
 
+#define OMNIA_CMD_LED_MODE_LED(_l)	FIELD_PREP(OMNIA_CMD_LED_MODE_LED_MASK, _l)
+
 enum omnia_cmd_led_state_e {
 	OMNIA_CMD_LED_STATE_LED_MASK	= GENMASK(3, 0),
-#define OMNIA_CMD_LED_STATE_LED(_l)	FIELD_PREP(OMNIA_CMD_LED_STATE_LED_MASK, _l)
 	OMNIA_CMD_LED_STATE_ON		= BIT(4),
 };
 
+#define OMNIA_CMD_LED_STATE_LED(_l)	FIELD_PREP(OMNIA_CMD_LED_STATE_LED_MASK, _l)
+
 enum omnia_cmd_poweroff_e {
 	OMNIA_CMD_POWER_OFF_POWERON_BUTTON	= BIT(0),
 	OMNIA_CMD_POWER_OFF_MAGIC		= 0xdead,
-- 
2.45.2


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

* Re: (subset) [PATCH leds] turris-omnia-mcu-interface.h: Move macro definitions outside of enums
  2024-12-15 21:13 [PATCH leds] turris-omnia-mcu-interface.h: Move macro definitions outside of enums Marek Behún
@ 2024-12-17 14:51 ` Lee Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2024-12-17 14:51 UTC (permalink / raw)
  To: Lee Jones, Marek Behún; +Cc: linux-leds

On Sun, 15 Dec 2024 22:13:23 +0100, Marek Behún wrote:
> Move the definitions of enumerator related macros outside of the
> enumerator definitions.
> 
> 

Applied, thanks!

[1/1] turris-omnia-mcu-interface.h: Move macro definitions outside of enums
      commit: 1c896113f04e34d0036ef506532d2e6cf77dd1e5

--
Lee Jones [李琼斯]


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

end of thread, other threads:[~2024-12-17 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15 21:13 [PATCH leds] turris-omnia-mcu-interface.h: Move macro definitions outside of enums Marek Behún
2024-12-17 14:51 ` (subset) " Lee Jones

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.