diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 13:02:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 16:11:54 -0400 |
commit | d4c06133af03de45182d689230eb7e7e0184c966 (patch) | |
tree | 9736e05114d054a10078733c574ea7521457d625 /drivers/media | |
parent | a094ca46888db5b7fada3128f5a65fef552fd649 (diff) |
[media] cx231xx: get rid of warning: no previous prototype
drivers/media/usb/cx231xx/cx231xx-avcore.c:1071:5: warning: no previous prototype for 'stopAudioFirmware' [-Wmissing-prototypes]
drivers/media/usb/cx231xx/cx231xx-avcore.c:1076:5: warning: no previous prototype for 'restartAudioFirmware' [-Wmissing-prototypes]
drivers/media/usb/cx231xx/cx231xx-cards.c:689:6: warning: no previous prototype for 'cx231xx_reset_out' [-Wmissing-prototypes]
drivers/media/usb/cx231xx/cx231xx-cards.c:697:6: warning: no previous prototype for 'cx231xx_enable_OSC' [-Wmissing-prototypes]
drivers/media/usb/cx231xx/cx231xx-cards.c:701:6: warning: no previous prototype for 'cx231xx_sleep_s5h1432' [-Wmissing-prototypes]
drivers/media/usb/cx231xx/cx231xx-i2c.c:75:5: warning: no previous prototype for 'cx231xx_i2c_send_bytes' [-Wmissing-prototypes]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-avcore.c | 4 | ||||
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-cards.c | 8 | ||||
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-i2c.c | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-avcore.c b/drivers/media/usb/cx231xx/cx231xx-avcore.c index 447148eff958..d34dbcf834c7 100644 --- a/drivers/media/usb/cx231xx/cx231xx-avcore.c +++ b/drivers/media/usb/cx231xx/cx231xx-avcore.c | |||
@@ -1068,12 +1068,12 @@ int cx231xx_unmute_audio(struct cx231xx *dev) | |||
1068 | } | 1068 | } |
1069 | EXPORT_SYMBOL_GPL(cx231xx_unmute_audio); | 1069 | EXPORT_SYMBOL_GPL(cx231xx_unmute_audio); |
1070 | 1070 | ||
1071 | int stopAudioFirmware(struct cx231xx *dev) | 1071 | static int stopAudioFirmware(struct cx231xx *dev) |
1072 | { | 1072 | { |
1073 | return vid_blk_write_byte(dev, DL_CTL_CONTROL, 0x03); | 1073 | return vid_blk_write_byte(dev, DL_CTL_CONTROL, 0x03); |
1074 | } | 1074 | } |
1075 | 1075 | ||
1076 | int restartAudioFirmware(struct cx231xx *dev) | 1076 | static int restartAudioFirmware(struct cx231xx *dev) |
1077 | { | 1077 | { |
1078 | return vid_blk_write_byte(dev, DL_CTL_CONTROL, 0x13); | 1078 | return vid_blk_write_byte(dev, DL_CTL_CONTROL, 0x13); |
1079 | } | 1079 | } |
diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index b84ebc54d91b..bbed1e40eeda 100644 --- a/drivers/media/usb/cx231xx/cx231xx-cards.c +++ b/drivers/media/usb/cx231xx/cx231xx-cards.c | |||
@@ -686,7 +686,7 @@ int cx231xx_tuner_callback(void *ptr, int component, int command, int arg) | |||
686 | } | 686 | } |
687 | EXPORT_SYMBOL_GPL(cx231xx_tuner_callback); | 687 | EXPORT_SYMBOL_GPL(cx231xx_tuner_callback); |
688 | 688 | ||
689 | void cx231xx_reset_out(struct cx231xx *dev) | 689 | static void cx231xx_reset_out(struct cx231xx *dev) |
690 | { | 690 | { |
691 | cx231xx_set_gpio_value(dev, CX23417_RESET, 1); | 691 | cx231xx_set_gpio_value(dev, CX23417_RESET, 1); |
692 | msleep(200); | 692 | msleep(200); |
@@ -694,11 +694,13 @@ void cx231xx_reset_out(struct cx231xx *dev) | |||
694 | msleep(200); | 694 | msleep(200); |
695 | cx231xx_set_gpio_value(dev, CX23417_RESET, 1); | 695 | cx231xx_set_gpio_value(dev, CX23417_RESET, 1); |
696 | } | 696 | } |
697 | void cx231xx_enable_OSC(struct cx231xx *dev) | 697 | |
698 | static void cx231xx_enable_OSC(struct cx231xx *dev) | ||
698 | { | 699 | { |
699 | cx231xx_set_gpio_value(dev, CX23417_OSC_EN, 1); | 700 | cx231xx_set_gpio_value(dev, CX23417_OSC_EN, 1); |
700 | } | 701 | } |
701 | void cx231xx_sleep_s5h1432(struct cx231xx *dev) | 702 | |
703 | static void cx231xx_sleep_s5h1432(struct cx231xx *dev) | ||
702 | { | 704 | { |
703 | cx231xx_set_gpio_value(dev, SLEEP_S5H1432, 0); | 705 | cx231xx_set_gpio_value(dev, SLEEP_S5H1432, 0); |
704 | } | 706 | } |
diff --git a/drivers/media/usb/cx231xx/cx231xx-i2c.c b/drivers/media/usb/cx231xx/cx231xx-i2c.c index 781feed406f7..96a5a0965399 100644 --- a/drivers/media/usb/cx231xx/cx231xx-i2c.c +++ b/drivers/media/usb/cx231xx/cx231xx-i2c.c | |||
@@ -72,8 +72,8 @@ static inline bool is_tuner(struct cx231xx *dev, struct cx231xx_i2c *bus, | |||
72 | /* | 72 | /* |
73 | * cx231xx_i2c_send_bytes() | 73 | * cx231xx_i2c_send_bytes() |
74 | */ | 74 | */ |
75 | int cx231xx_i2c_send_bytes(struct i2c_adapter *i2c_adap, | 75 | static int cx231xx_i2c_send_bytes(struct i2c_adapter *i2c_adap, |
76 | const struct i2c_msg *msg) | 76 | const struct i2c_msg *msg) |
77 | { | 77 | { |
78 | struct cx231xx_i2c *bus = i2c_adap->algo_data; | 78 | struct cx231xx_i2c *bus = i2c_adap->algo_data; |
79 | struct cx231xx *dev = bus->dev; | 79 | struct cx231xx *dev = bus->dev; |