Fix code style in keyboard_inject

This commit is contained in:
Romain Vimont 2021-11-26 21:57:06 +01:00
parent 82a053015d
commit c96505200a

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