Commit bda977b7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] rtl2832: declare functions as static

drivers/media/dvb-frontends/rtl2832.c:157:5: warning: no previous prototype for ‘rtl2832_bulk_write’ [-Wmissing-prototypes]
 int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg,
     ^
drivers/media/dvb-frontends/rtl2832.c:169:5: warning: no previous prototype for ‘rtl2832_update_bits’ [-Wmissing-prototypes]
 int rtl2832_update_bits(struct i2c_client *client, unsigned int reg,
     ^
drivers/media/dvb-frontends/rtl2832.c:181:5: warning: no previous prototype for ‘rtl2832_bulk_read’ [-Wmissing-prototypes]
 int rtl2832_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 d858b0e7
...@@ -154,7 +154,7 @@ static const struct rtl2832_reg_entry registers[] = { ...@@ -154,7 +154,7 @@ static const struct rtl2832_reg_entry registers[] = {
}; };
/* Our regmap is bypassing I2C adapter lock, thus we do it! */ /* Our regmap is bypassing I2C adapter lock, thus we do it! */
int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg, static int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg,
const void *val, size_t val_count) const void *val, size_t val_count)
{ {
struct rtl2832_dev *dev = i2c_get_clientdata(client); struct rtl2832_dev *dev = i2c_get_clientdata(client);
...@@ -166,7 +166,7 @@ int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg, ...@@ -166,7 +166,7 @@ int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg,
return ret; return ret;
} }
int rtl2832_update_bits(struct i2c_client *client, unsigned int reg, static int rtl2832_update_bits(struct i2c_client *client, unsigned int reg,
unsigned int mask, unsigned int val) unsigned int mask, unsigned int val)
{ {
struct rtl2832_dev *dev = i2c_get_clientdata(client); struct rtl2832_dev *dev = i2c_get_clientdata(client);
...@@ -178,8 +178,8 @@ int rtl2832_update_bits(struct i2c_client *client, unsigned int reg, ...@@ -178,8 +178,8 @@ int rtl2832_update_bits(struct i2c_client *client, unsigned int reg,
return ret; return ret;
} }
int rtl2832_bulk_read(struct i2c_client *client, unsigned int reg, void *val, static int rtl2832_bulk_read(struct i2c_client *client, unsigned int reg,
size_t val_count) void *val, size_t val_count)
{ {
struct rtl2832_dev *dev = i2c_get_clientdata(client); struct rtl2832_dev *dev = i2c_get_clientdata(client);
int ret; int ret;
......
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