Re: [PATCH i-g-t] lib/igt_gt: Define HANG_ALLOW_* as bit flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On ti, 2017-02-07 at 18:00 -0800, Michel Thierry wrote:
> As that is what they are meant to be. It will prevent any confusion if we
> have to add other flags in the future.
> 
> Signed-off-by: Michel Thierry <michel.thierry@xxxxxxxxx>

<SNIP>

> -#define HANG_ALLOW_BAN 1
> -#define HANG_ALLOW_CAPTURE 2
> +#define HANG_ALLOW_BAN		(1<<0)
> +#define HANG_ALLOW_CAPTURE	(1<<1)

Make them BIT(0) and BIT(1), and this is;

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux