Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d858b0e7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] rtl2830: declare functions as static



drivers/media/dvb-frontends/rtl2830.c:21:5: warning: no previous prototype for ‘rtl2830_bulk_write’ [-Wmissing-prototypes]
 int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
     ^
drivers/media/dvb-frontends/rtl2830.c:33:5: warning: no previous prototype for ‘rtl2830_update_bits’ [-Wmissing-prototypes]
 int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
     ^
drivers/media/dvb-frontends/rtl2830.c:45:5: warning: no previous prototype for ‘rtl2830_bulk_read’ [-Wmissing-prototypes]
 int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg, void *val,
     ^

Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent cecc5896
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
#include "rtl2830_priv.h"

/* Our regmap is bypassing I2C adapter lock, thus we do it! */
int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
static int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
			      const void *val, size_t val_count)
{
	struct rtl2830_dev *dev = i2c_get_clientdata(client);
@@ -30,7 +30,7 @@ int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
	return ret;
}

int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
static int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
			       unsigned int mask, unsigned int val)
{
	struct rtl2830_dev *dev = i2c_get_clientdata(client);
@@ -42,8 +42,8 @@ int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
	return ret;
}

int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg, void *val,
		      size_t val_count)
static int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg,
			     void *val, size_t val_count)
{
	struct rtl2830_dev *dev = i2c_get_clientdata(client);
	int ret;