Commit 19d1b30e authored by Alessandro Rubini's avatar Alessandro Rubini

kernel: add the missing 'static' markers

Change suggested by Emilio Cota, whose coccicheck is newer than mine.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent cf901bfb
...@@ -158,7 +158,7 @@ static DECLARE_DELAYED_WORK(ff_work, ff_work_fn); ...@@ -158,7 +158,7 @@ static DECLARE_DELAYED_WORK(ff_work, ff_work_fn);
/* low-level i2c */ /* low-level i2c */
int ff_eeprom_read(struct fmc_device *fmc, uint32_t offset, static int ff_eeprom_read(struct fmc_device *fmc, uint32_t offset,
void *buf, size_t size) void *buf, size_t size)
{ {
if (offset > FF_EEPROM_SIZE) if (offset > FF_EEPROM_SIZE)
...@@ -169,7 +169,7 @@ int ff_eeprom_read(struct fmc_device *fmc, uint32_t offset, ...@@ -169,7 +169,7 @@ int ff_eeprom_read(struct fmc_device *fmc, uint32_t offset,
return size; return size;
} }
int ff_eeprom_write(struct fmc_device *fmc, uint32_t offset, static int ff_eeprom_write(struct fmc_device *fmc, uint32_t offset,
const void *buf, size_t size) const void *buf, size_t size)
{ {
if (offset > FF_EEPROM_SIZE) if (offset > FF_EEPROM_SIZE)
...@@ -200,12 +200,12 @@ static int ff_write_ee(struct fmc_device *fmc, int pos, ...@@ -200,12 +200,12 @@ static int ff_write_ee(struct fmc_device *fmc, int pos,
} }
/* readl and writel do not do anything. Don't waste RAM with "base" */ /* readl and writel do not do anything. Don't waste RAM with "base" */
uint32_t ff_readl(struct fmc_device *fmc, int offset) static uint32_t ff_readl(struct fmc_device *fmc, int offset)
{ {
return 0; return 0;
} }
void ff_writel(struct fmc_device *fmc, uint32_t value, int offset) static void ff_writel(struct fmc_device *fmc, uint32_t value, int offset)
{ {
return; return;
} }
...@@ -291,7 +291,7 @@ static struct ff_dev *ff_dev_create(void) ...@@ -291,7 +291,7 @@ static struct ff_dev *ff_dev_create(void)
} }
/* init and exit */ /* init and exit */
int ff_init(void) static int ff_init(void)
{ {
struct ff_dev *ff; struct ff_dev *ff;
const struct firmware *fw; const struct firmware *fw;
...@@ -334,7 +334,7 @@ int ff_init(void) ...@@ -334,7 +334,7 @@ int ff_init(void)
return ret; return ret;
} }
void ff_exit(void) static void ff_exit(void)
{ {
if (ff_current_dev) { if (ff_current_dev) {
fmc_device_unregister_n(ff_current_dev->fmc, ff_nr_dev); fmc_device_unregister_n(ff_current_dev->fmc, ff_nr_dev);
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
static struct fmc_driver t_drv; /* initialized later */ static struct fmc_driver t_drv; /* initialized later */
irqreturn_t t_handler(int irq, void *dev_id) static irqreturn_t t_handler(int irq, void *dev_id)
{ {
struct fmc_device *fmc = dev_id; struct fmc_device *fmc = dev_id;
...@@ -23,7 +23,7 @@ irqreturn_t t_handler(int irq, void *dev_id) ...@@ -23,7 +23,7 @@ irqreturn_t t_handler(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
struct fmc_gpio t_gpio[] = { static struct fmc_gpio t_gpio[] = {
{ {
.gpio = FMC_GPIO_IRQ(0), .gpio = FMC_GPIO_IRQ(0),
.mode = GPIOF_DIR_IN, .mode = GPIOF_DIR_IN,
...@@ -35,7 +35,7 @@ struct fmc_gpio t_gpio[] = { ...@@ -35,7 +35,7 @@ struct fmc_gpio t_gpio[] = {
} }
}; };
int t_probe(struct fmc_device *fmc) static int t_probe(struct fmc_device *fmc)
{ {
int ret; int ret;
int index = 0; int index = 0;
...@@ -64,7 +64,7 @@ int t_probe(struct fmc_device *fmc) ...@@ -64,7 +64,7 @@ int t_probe(struct fmc_device *fmc)
return ret; return ret;
} }
int t_remove(struct fmc_device *fmc) static int t_remove(struct fmc_device *fmc)
{ {
fmc->op->irq_free(fmc); fmc->op->irq_free(fmc);
return 0; return 0;
......
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