Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

+6 -6
+6 -6
drivers/media/dvb-frontends/rtl2830.c
··· 18 18 #include "rtl2830_priv.h" 19 19 20 20 /* 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) 23 23 { 24 24 struct rtl2830_dev *dev = i2c_get_clientdata(client); 25 25 int ret; ··· 30 30 return ret; 31 31 } 32 32 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) 35 35 { 36 36 struct rtl2830_dev *dev = i2c_get_clientdata(client); 37 37 int ret; ··· 42 42 return ret; 43 43 } 44 44 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) 47 47 { 48 48 struct rtl2830_dev *dev = i2c_get_clientdata(client); 49 49 int ret;