rpisense: Make globals static to allow non-module build

This commit is contained in:
popcornmix
2016-01-04 14:42:58 +00:00
parent b776573142
commit f90e9b5dc9
3 changed files with 4 additions and 4 deletions

View File

@@ -18,8 +18,8 @@
#include <linux/mfd/rpisense/joystick.h>
#include <linux/mfd/rpisense/core.h>
struct rpisense *rpisense;
unsigned char keymap[5] = {KEY_DOWN, KEY_RIGHT, KEY_UP, KEY_ENTER, KEY_LEFT,};
static struct rpisense *rpisense;
static unsigned char keymap[5] = {KEY_DOWN, KEY_RIGHT, KEY_UP, KEY_ENTER, KEY_LEFT,};
static void keys_work_fn(struct work_struct *work)
{

View File

@@ -23,7 +23,7 @@
#include <linux/mfd/rpisense/core.h>
#include <linux/slab.h>
struct rpisense *rpisense;
static struct rpisense *rpisense;
static void rpisense_client_dev_register(struct rpisense *rpisense,
const char *name,

View File

@@ -31,7 +31,7 @@ static bool lowlight;
module_param(lowlight, bool, 0);
MODULE_PARM_DESC(lowlight, "Reduce LED matrix brightness to one third");
struct rpisense *rpisense;
static struct rpisense *rpisense;
struct rpisense_fb_param {
char __iomem *vmem;