Fix code style in keyboard_inject

This commit is contained in:
Romain Vimont 2021-11-26 21:57:06 +01:00
parent f1c53c441d
commit 94b0f2d2c1

View file

@ -9,8 +9,7 @@
#include "util/log.h"
/** Downcast key processor to sc_keyboard_inject */
#define DOWNCAST(KP) \
container_of(KP, struct sc_keyboard_inject, key_processor)
#define DOWNCAST(KP) container_of(KP, struct sc_keyboard_inject, key_processor)
#define MAP(FROM, TO) case FROM: *to = TO; return true
#define FAIL default: return false