Skip to content

Commit d858b0e

Browse files
committed
[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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent cecc589 commit d858b0e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/media/dvb-frontends/rtl2830.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#include "rtl2830_priv.h"
1919

2020
/* Our regmap is bypassing I2C adapter lock, thus we do it! */
21-
int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
22-
const void *val, size_t val_count)
21+
static int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
22+
const void *val, size_t val_count)
2323
{
2424
struct rtl2830_dev *dev = i2c_get_clientdata(client);
2525
int ret;
@@ -30,8 +30,8 @@ int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg,
3030
return ret;
3131
}
3232

33-
int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
34-
unsigned int mask, unsigned int val)
33+
static int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
34+
unsigned int mask, unsigned int val)
3535
{
3636
struct rtl2830_dev *dev = i2c_get_clientdata(client);
3737
int ret;
@@ -42,8 +42,8 @@ int rtl2830_update_bits(struct i2c_client *client, unsigned int reg,
4242
return ret;
4343
}
4444

45-
int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg, void *val,
46-
size_t val_count)
45+
static int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg,
46+
void *val, size_t val_count)
4747
{
4848
struct rtl2830_dev *dev = i2c_get_clientdata(client);
4949
int ret;

0 commit comments

Comments
 (0)