get rid of input BIT* duplicate defines
get rid of input BIT* duplicate defines use newly global defined macros for input layer. Also remove includes of input.h from non-input sources only for BIT macro definiton. Define the macro temporarily in local manner, all those local definitons will be removed further in this patchset (to not break bisecting). BIT macro will be globally defined (1<<x) Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: <dtor@mail.ru> Acked-by: Jiri Kosina <jkosina@suse.cz> Cc: <lenb@kernel.org> Acked-by: Marcel Holtmann <marcel@holtmann.org> Cc: <perex@suse.cz> Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: <vernux@us.ibm.com> Cc: <malattia@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
d05be13bcc
commit
7b19ada2ed
@@ -389,7 +389,8 @@ int iforce_init_device(struct iforce *iforce)
|
||||
* Set input device bitfields and ranges.
|
||||
*/
|
||||
|
||||
input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS) | BIT(EV_FF_STATUS);
|
||||
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS) |
|
||||
BIT_MASK(EV_FF_STATUS);
|
||||
|
||||
for (i = 0; iforce->type->btn[i] >= 0; i++)
|
||||
set_bit(iforce->type->btn[i], input_dev->keybit);
|
||||
|
@@ -62,13 +62,13 @@
|
||||
#define FF_CORE_IS_PLAYED 3 /* Effect is currently being played */
|
||||
#define FF_CORE_SHOULD_PLAY 4 /* User wants the effect to be played */
|
||||
#define FF_CORE_UPDATE 5 /* Effect is being updated */
|
||||
#define FF_MODCORE_MAX 5
|
||||
#define FF_MODCORE_CNT 6
|
||||
|
||||
struct iforce_core_effect {
|
||||
/* Information about where modifiers are stored in the device's memory */
|
||||
struct resource mod1_chunk;
|
||||
struct resource mod2_chunk;
|
||||
unsigned long flags[NBITS(FF_MODCORE_MAX)];
|
||||
unsigned long flags[BITS_TO_LONGS(FF_MODCORE_CNT)];
|
||||
};
|
||||
|
||||
#define FF_CMD_EFFECT 0x010e
|
||||
|
Reference in New Issue
Block a user