Skip to content

Commit bda977b

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

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/media/dvb-frontends/rtl2832.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ static const struct rtl2832_reg_entry registers[] = {
154154
};
155155

156156
/* Our regmap is bypassing I2C adapter lock, thus we do it! */
157-
int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg,
158-
const void *val, size_t val_count)
157+
static int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg,
158+
const void *val, size_t val_count)
159159
{
160160
struct rtl2832_dev *dev = i2c_get_clientdata(client);
161161
int ret;
@@ -166,8 +166,8 @@ int rtl2832_bulk_write(struct i2c_client *client, unsigned int reg,
166166
return ret;
167167
}
168168

169-
int rtl2832_update_bits(struct i2c_client *client, unsigned int reg,
170-
unsigned int mask, unsigned int val)
169+
static int rtl2832_update_bits(struct i2c_client *client, unsigned int reg,
170+
unsigned int mask, unsigned int val)
171171
{
172172
struct rtl2832_dev *dev = i2c_get_clientdata(client);
173173
int ret;
@@ -178,8 +178,8 @@ int rtl2832_update_bits(struct i2c_client *client, unsigned int reg,
178178
return ret;
179179
}
180180

181-
int rtl2832_bulk_read(struct i2c_client *client, unsigned int reg, void *val,
182-
size_t val_count)
181+
static int rtl2832_bulk_read(struct i2c_client *client, unsigned int reg,
182+
void *val, size_t val_count)
183183
{
184184
struct rtl2832_dev *dev = i2c_get_clientdata(client);
185185
int ret;

0 commit comments

Comments
 (0)