lkml.org 
[lkml]   [2020]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/5] tty: add port flag to suppress ready signalling on open
From
Date
On 30. 11. 20, 16:37, Johan Hovold wrote:
> --- a/include/linux/tty.h
> +++ b/include/linux/tty.h
> @@ -683,6 +684,19 @@ static inline void tty_port_set_kopened(struct tty_port *port, bool val)
> clear_bit(TTY_PORT_KOPENED, &port->iflags);
> }
>
> +static inline bool tty_port_nordy(struct tty_port *port)

port can be const here.

> +{
> + return test_bit(TTY_PORT_NORDY, &port->iflags);
> +}
> +
> +static inline void tty_port_set_nordy(struct tty_port *port, bool val)
> +{
> + if (val)
> + set_bit(TTY_PORT_NORDY, &port->iflags);
> + else
> + clear_bit(TTY_PORT_NORDY, &port->iflags);

We have assign_bit() for these cases these days.

thanks,
--
js

\
 
 \ /
  Last update: 2020-12-01 06:53    [W:0.132 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site