Commit d46b3f5b authored by Shawn Guo's avatar Shawn Guo Committed by Dmitry Torokhov

reboot: export symbol 'reboot_mode'

Some drivers like Qualcomm pm8941-pwrkey need to access 'reboot_mode'
for triggering reboot between cold and warm mode.  Export the symbol, so
that drivers built as module can still access the symbol.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20210714095850.27185-2-shawn.guo@linaro.orgSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent dcd6a66a
...@@ -32,6 +32,7 @@ EXPORT_SYMBOL(cad_pid); ...@@ -32,6 +32,7 @@ EXPORT_SYMBOL(cad_pid);
#define DEFAULT_REBOOT_MODE #define DEFAULT_REBOOT_MODE
#endif #endif
enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE; enum reboot_mode reboot_mode DEFAULT_REBOOT_MODE;
EXPORT_SYMBOL_GPL(reboot_mode);
enum reboot_mode panic_reboot_mode = REBOOT_UNDEFINED; enum reboot_mode panic_reboot_mode = REBOOT_UNDEFINED;
/* /*
......
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