Commit 501cc54c authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: mark some functions __must_check

Mark input_register_device() and input_register_handler() functions
as __must_check so authors of new drivers add error handling right
away.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 018db6bb
......@@ -1125,10 +1125,10 @@ static inline void input_set_drvdata(struct input_dev *dev, void *data)
dev->private = data;
}
int input_register_device(struct input_dev *);
int __must_check input_register_device(struct input_dev *);
void input_unregister_device(struct input_dev *);
int input_register_handler(struct input_handler *);
int __must_check input_register_handler(struct input_handler *);
void input_unregister_handler(struct input_handler *);
int input_register_handle(struct input_handle *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment