mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
Input: avoid BIT() macro usage in the serio.h UAPI header
commit52afa505a0upstream. The commit19ba1eb15a("Input: psmouse - add a custom serio protocol to send extra information") introduced usage of the BIT() macro for SERIO_* flags; this macro is not provided in UAPI headers. Replace if with similarly defined _BITUL() macro defined in <linux/const.h>. Fixes:19ba1eb15a("Input: psmouse - add a custom serio protocol to send extra information") Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com> Cc: <stable@vger.kernel.org> # v5.0+ Link: https://lore.kernel.org/r/20200324041341.GA32335@asgard.redhat.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
597d6fb481
commit
99058b8bee
@@ -9,7 +9,7 @@
|
||||
#ifndef _UAPI_SERIO_H
|
||||
#define _UAPI_SERIO_H
|
||||
|
||||
|
||||
#include <linux/const.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#define SPIOCSTYPE _IOW('q', 0x01, unsigned long)
|
||||
@@ -18,10 +18,10 @@
|
||||
/*
|
||||
* bit masks for use in "interrupt" flags (3rd argument)
|
||||
*/
|
||||
#define SERIO_TIMEOUT BIT(0)
|
||||
#define SERIO_PARITY BIT(1)
|
||||
#define SERIO_FRAME BIT(2)
|
||||
#define SERIO_OOB_DATA BIT(3)
|
||||
#define SERIO_TIMEOUT _BITUL(0)
|
||||
#define SERIO_PARITY _BITUL(1)
|
||||
#define SERIO_FRAME _BITUL(2)
|
||||
#define SERIO_OOB_DATA _BITUL(3)
|
||||
|
||||
/*
|
||||
* Serio types
|
||||
|
||||
Reference in New Issue
Block a user