public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* Re: [PATCH v6 1/2] tty: serial: Cleanup the bit shift with macro
@ 2024-01-16 15:58 Christoph Niedermaier
  2024-01-17 14:56 ` Christoph Niedermaier
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Niedermaier @ 2024-01-16 15:58 UTC (permalink / raw)
  To: crescentcy.hsieh
  Cc: gregkh, jirislaby, linux-kernel, linux-serial, cniedermaier,
	linux-arm-kernel

In the old definition (1 << 3) wasn't used.

> -#define SER_RS485_RX_DURING_TX		(1 << 4)
> -#define SER_RS485_TERMINATE_BUS		(1 << 5)
> -#define SER_RS485_ADDRB			(1 << 6)
> -#define SER_RS485_ADDR_RECV		(1 << 7)
> -#define SER_RS485_ADDR_DEST		(1 << 8)
> +#define SER_RS485_ENABLED		_BITUL(0)
> +#define SER_RS485_RTS_ON_SEND		_BITUL(1)
> +#define SER_RS485_RTS_AFTER_SEND	_BITUL(2)
> +#define SER_RS485_RX_DURING_TX		_BITUL(3)

Isn't it a break if number 3 isn't skipped here as well?

Regards
Christoph

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2024-01-18  9:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 15:58 [PATCH v6 1/2] tty: serial: Cleanup the bit shift with macro Christoph Niedermaier
2024-01-17 14:56 ` Christoph Niedermaier
2024-01-18  7:01   ` Greg KH
2024-01-18  8:14     ` Crescent CY Hsieh
2024-01-18  8:44       ` Greg KH
2024-01-18  9:29     ` Christoph Niedermaier

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