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

V4L/DVB (6577): et61x251/: make 5 functions static

This patch makes the following needlessly global functions in
et61x251_core.c static:
- et61x251_read_reg()
- et61x251_i2c_try_read()
- et61x251_i2c_try_write()
- et61x251_i2c_read()
- et61x251_i2c_write()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Adrian Bunk and committed by
Mauro Carvalho Chehab
f760d618 a2fbaa51

+10 -18
+10 -10
drivers/media/video/et61x251/et61x251_core.c
··· 227 227 } 228 228 229 229 230 - int et61x251_read_reg(struct et61x251_device* cam, u16 index) 230 + static int et61x251_read_reg(struct et61x251_device* cam, u16 index) 231 231 { 232 232 struct usb_device* udev = cam->usbdev; 233 233 u8* buff = cam->control_buffer; ··· 268 268 } 269 269 270 270 271 - int 272 - et61x251_i2c_try_read(struct et61x251_device* cam, 273 - const struct et61x251_sensor* sensor, u8 address) 271 + static int et61x251_i2c_try_read(struct et61x251_device* cam, 272 + const struct et61x251_sensor* sensor, 273 + u8 address) 274 274 { 275 275 struct usb_device* udev = cam->usbdev; 276 276 u8* data = cam->control_buffer; ··· 301 301 } 302 302 303 303 304 - int 305 - et61x251_i2c_try_write(struct et61x251_device* cam, 306 - const struct et61x251_sensor* sensor, u8 address, 307 - u8 value) 304 + static int et61x251_i2c_try_write(struct et61x251_device* cam, 305 + const struct et61x251_sensor* sensor, 306 + u8 address, u8 value) 308 307 { 309 308 struct usb_device* udev = cam->usbdev; 310 309 u8* data = cam->control_buffer; ··· 386 387 } 387 388 388 389 389 - int et61x251_i2c_read(struct et61x251_device* cam, u8 address) 390 + static int et61x251_i2c_read(struct et61x251_device* cam, u8 address) 390 391 { 391 392 return et61x251_i2c_try_read(cam, &cam->sensor, address); 392 393 } 393 394 394 395 395 - int et61x251_i2c_write(struct et61x251_device* cam, u8 address, u8 value) 396 + static int et61x251_i2c_write(struct et61x251_device* cam, 397 + u8 address, u8 value) 396 398 { 397 399 return et61x251_i2c_try_write(cam, &cam->sensor, address, value); 398 400 }
-8
drivers/media/video/et61x251/et61x251_sensor.h
··· 52 52 /*****************************************************************************/ 53 53 54 54 extern int et61x251_write_reg(struct et61x251_device*, u8 value, u16 index); 55 - extern int et61x251_read_reg(struct et61x251_device*, u16 index); 56 - extern int et61x251_i2c_write(struct et61x251_device*, u8 address, u8 value); 57 - extern int et61x251_i2c_read(struct et61x251_device*, u8 address); 58 - extern int et61x251_i2c_try_write(struct et61x251_device*, 59 - const struct et61x251_sensor*, u8 address, 60 - u8 value); 61 - extern int et61x251_i2c_try_read(struct et61x251_device*, 62 - const struct et61x251_sensor*, u8 address); 63 55 extern int et61x251_i2c_raw_write(struct et61x251_device*, u8 n, u8 data1, 64 56 u8 data2, u8 data3, u8 data4, u8 data5, 65 57 u8 data6, u8 data7, u8 data8, u8 address);