Commit 08075fa9 authored by spiiroin's avatar spiiroin

[worker] Make internal module state data static

Global data is problematic in general and these values have accessor
functions anyway and thus there is no reason for extern visibility.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent 700b8f55
......@@ -253,7 +253,7 @@ SUCCESS:
* ------------------------------------------------------------------------- */
/** The module name for the specific mode */
char *worker_kernel_module = NULL;
static char *worker_kernel_module = NULL;
/** get the supposedly loaded module
*
......@@ -311,7 +311,7 @@ void worker_clear_kernel_module(void)
* ------------------------------------------------------------------------- */
/** Contains the mode data */
struct mode_list_elem *worker_mode_data = NULL;
static struct mode_list_elem *worker_mode_data = NULL;
/** get the usb mode data
*
......@@ -343,9 +343,9 @@ void worker_set_usb_mode_data(struct mode_list_elem *data)
*
* For example internal_mode=MODE_ASK gets
* mapped to hardware_mode=MODE_CHARGING */
gchar *worker_requested_mode = NULL;
static gchar *worker_requested_mode = NULL;
gchar *worker_activated_mode = NULL;
static gchar *worker_activated_mode = NULL;
static const char *
worker_get_activated_mode_locked(void)
......
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