diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2010-11-14 12:56:00 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:48 -0500 |
commit | 3037fd14302d635426996fb7f6fcf7cb98dc15b9 (patch) | |
tree | c237fb91f6033383e937198e14627a96df086dd4 /drivers/media/dvb/mantis | |
parent | a22407faba57c3624beea1a9fad7cbdcf5a19a1a (diff) |
[media] Mantis: Rename gpio_set_bits to mantis_gpio_set_bits
This function is declared extern and exported, and should not be given
a generic name which may conflict with gpiolib in future.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis')
-rw-r--r-- | drivers/media/dvb/mantis/hopper_vp3028.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_dvb.c | 14 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_ioc.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_ioc.h | 2 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp1034.c | 8 | ||||
-rw-r--r-- | drivers/media/dvb/mantis/mantis_vp3030.c | 4 |
6 files changed, 18 insertions, 18 deletions
diff --git a/drivers/media/dvb/mantis/hopper_vp3028.c b/drivers/media/dvb/mantis/hopper_vp3028.c index 567ed24f2de3..68a29f8bdf73 100644 --- a/drivers/media/dvb/mantis/hopper_vp3028.c +++ b/drivers/media/dvb/mantis/hopper_vp3028.c | |||
@@ -47,11 +47,11 @@ static int vp3028_frontend_init(struct mantis_pci *mantis, struct dvb_frontend * | |||
47 | struct mantis_hwconfig *config = mantis->hwconfig; | 47 | struct mantis_hwconfig *config = mantis->hwconfig; |
48 | int err = 0; | 48 | int err = 0; |
49 | 49 | ||
50 | gpio_set_bits(mantis, config->reset, 0); | 50 | mantis_gpio_set_bits(mantis, config->reset, 0); |
51 | msleep(100); | 51 | msleep(100); |
52 | err = mantis_frontend_power(mantis, POWER_ON); | 52 | err = mantis_frontend_power(mantis, POWER_ON); |
53 | msleep(100); | 53 | msleep(100); |
54 | gpio_set_bits(mantis, config->reset, 1); | 54 | mantis_gpio_set_bits(mantis, config->reset, 1); |
55 | 55 | ||
56 | err = mantis_frontend_power(mantis, POWER_ON); | 56 | err = mantis_frontend_power(mantis, POWER_ON); |
57 | if (err == 0) { | 57 | if (err == 0) { |
diff --git a/drivers/media/dvb/mantis/mantis_dvb.c b/drivers/media/dvb/mantis/mantis_dvb.c index a9864f7134e1..e5180e45d310 100644 --- a/drivers/media/dvb/mantis/mantis_dvb.c +++ b/drivers/media/dvb/mantis/mantis_dvb.c | |||
@@ -47,15 +47,15 @@ int mantis_frontend_power(struct mantis_pci *mantis, enum mantis_power power) | |||
47 | switch (power) { | 47 | switch (power) { |
48 | case POWER_ON: | 48 | case POWER_ON: |
49 | dprintk(MANTIS_DEBUG, 1, "Power ON"); | 49 | dprintk(MANTIS_DEBUG, 1, "Power ON"); |
50 | gpio_set_bits(mantis, config->power, POWER_ON); | 50 | mantis_gpio_set_bits(mantis, config->power, POWER_ON); |
51 | msleep(100); | 51 | msleep(100); |
52 | gpio_set_bits(mantis, config->power, POWER_ON); | 52 | mantis_gpio_set_bits(mantis, config->power, POWER_ON); |
53 | msleep(100); | 53 | msleep(100); |
54 | break; | 54 | break; |
55 | 55 | ||
56 | case POWER_OFF: | 56 | case POWER_OFF: |
57 | dprintk(MANTIS_DEBUG, 1, "Power OFF"); | 57 | dprintk(MANTIS_DEBUG, 1, "Power OFF"); |
58 | gpio_set_bits(mantis, config->power, POWER_OFF); | 58 | mantis_gpio_set_bits(mantis, config->power, POWER_OFF); |
59 | msleep(100); | 59 | msleep(100); |
60 | break; | 60 | break; |
61 | 61 | ||
@@ -73,13 +73,13 @@ void mantis_frontend_soft_reset(struct mantis_pci *mantis) | |||
73 | struct mantis_hwconfig *config = mantis->hwconfig; | 73 | struct mantis_hwconfig *config = mantis->hwconfig; |
74 | 74 | ||
75 | dprintk(MANTIS_DEBUG, 1, "Frontend RESET"); | 75 | dprintk(MANTIS_DEBUG, 1, "Frontend RESET"); |
76 | gpio_set_bits(mantis, config->reset, 0); | 76 | mantis_gpio_set_bits(mantis, config->reset, 0); |
77 | msleep(100); | 77 | msleep(100); |
78 | gpio_set_bits(mantis, config->reset, 0); | 78 | mantis_gpio_set_bits(mantis, config->reset, 0); |
79 | msleep(100); | 79 | msleep(100); |
80 | gpio_set_bits(mantis, config->reset, 1); | 80 | mantis_gpio_set_bits(mantis, config->reset, 1); |
81 | msleep(100); | 81 | msleep(100); |
82 | gpio_set_bits(mantis, config->reset, 1); | 82 | mantis_gpio_set_bits(mantis, config->reset, 1); |
83 | msleep(100); | 83 | msleep(100); |
84 | 84 | ||
85 | return; | 85 | return; |
diff --git a/drivers/media/dvb/mantis/mantis_ioc.c b/drivers/media/dvb/mantis/mantis_ioc.c index fe31cfb0b158..479086dbb9a8 100644 --- a/drivers/media/dvb/mantis/mantis_ioc.c +++ b/drivers/media/dvb/mantis/mantis_ioc.c | |||
@@ -75,7 +75,7 @@ int mantis_get_mac(struct mantis_pci *mantis) | |||
75 | EXPORT_SYMBOL_GPL(mantis_get_mac); | 75 | EXPORT_SYMBOL_GPL(mantis_get_mac); |
76 | 76 | ||
77 | /* Turn the given bit on or off. */ | 77 | /* Turn the given bit on or off. */ |
78 | void gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value) | 78 | void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value) |
79 | { | 79 | { |
80 | u32 cur; | 80 | u32 cur; |
81 | 81 | ||
@@ -90,7 +90,7 @@ void gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value) | |||
90 | mmwrite(mantis->gpio_status, MANTIS_GPIF_ADDR); | 90 | mmwrite(mantis->gpio_status, MANTIS_GPIF_ADDR); |
91 | mmwrite(0x00, MANTIS_GPIF_DOUT); | 91 | mmwrite(0x00, MANTIS_GPIF_DOUT); |
92 | } | 92 | } |
93 | EXPORT_SYMBOL_GPL(gpio_set_bits); | 93 | EXPORT_SYMBOL_GPL(mantis_gpio_set_bits); |
94 | 94 | ||
95 | int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl) | 95 | int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl) |
96 | { | 96 | { |
diff --git a/drivers/media/dvb/mantis/mantis_ioc.h b/drivers/media/dvb/mantis/mantis_ioc.h index 188fe5a81614..d56e002b2955 100644 --- a/drivers/media/dvb/mantis/mantis_ioc.h +++ b/drivers/media/dvb/mantis/mantis_ioc.h | |||
@@ -44,7 +44,7 @@ enum mantis_stream_control { | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | extern int mantis_get_mac(struct mantis_pci *mantis); | 46 | extern int mantis_get_mac(struct mantis_pci *mantis); |
47 | extern void gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value); | 47 | extern void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value); |
48 | 48 | ||
49 | extern int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl); | 49 | extern int mantis_stream_control(struct mantis_pci *mantis, enum mantis_stream_control stream_ctl); |
50 | 50 | ||
diff --git a/drivers/media/dvb/mantis/mantis_vp1034.c b/drivers/media/dvb/mantis/mantis_vp1034.c index bf62338a1745..26bc0cbe84d4 100644 --- a/drivers/media/dvb/mantis/mantis_vp1034.c +++ b/drivers/media/dvb/mantis/mantis_vp1034.c | |||
@@ -50,13 +50,13 @@ int vp1034_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage) | |||
50 | switch (voltage) { | 50 | switch (voltage) { |
51 | case SEC_VOLTAGE_13: | 51 | case SEC_VOLTAGE_13: |
52 | dprintk(MANTIS_ERROR, 1, "Polarization=[13V]"); | 52 | dprintk(MANTIS_ERROR, 1, "Polarization=[13V]"); |
53 | gpio_set_bits(mantis, 13, 1); | 53 | mantis_gpio_set_bits(mantis, 13, 1); |
54 | gpio_set_bits(mantis, 14, 0); | 54 | mantis_gpio_set_bits(mantis, 14, 0); |
55 | break; | 55 | break; |
56 | case SEC_VOLTAGE_18: | 56 | case SEC_VOLTAGE_18: |
57 | dprintk(MANTIS_ERROR, 1, "Polarization=[18V]"); | 57 | dprintk(MANTIS_ERROR, 1, "Polarization=[18V]"); |
58 | gpio_set_bits(mantis, 13, 1); | 58 | mantis_gpio_set_bits(mantis, 13, 1); |
59 | gpio_set_bits(mantis, 14, 1); | 59 | mantis_gpio_set_bits(mantis, 14, 1); |
60 | break; | 60 | break; |
61 | case SEC_VOLTAGE_OFF: | 61 | case SEC_VOLTAGE_OFF: |
62 | dprintk(MANTIS_ERROR, 1, "Frontend (dummy) POWERDOWN"); | 62 | dprintk(MANTIS_ERROR, 1, "Frontend (dummy) POWERDOWN"); |
diff --git a/drivers/media/dvb/mantis/mantis_vp3030.c b/drivers/media/dvb/mantis/mantis_vp3030.c index be4d87c04149..c09308cd3ac6 100644 --- a/drivers/media/dvb/mantis/mantis_vp3030.c +++ b/drivers/media/dvb/mantis/mantis_vp3030.c | |||
@@ -59,11 +59,11 @@ static int vp3030_frontend_init(struct mantis_pci *mantis, struct dvb_frontend * | |||
59 | struct mantis_hwconfig *config = mantis->hwconfig; | 59 | struct mantis_hwconfig *config = mantis->hwconfig; |
60 | int err = 0; | 60 | int err = 0; |
61 | 61 | ||
62 | gpio_set_bits(mantis, config->reset, 0); | 62 | mantis_gpio_set_bits(mantis, config->reset, 0); |
63 | msleep(100); | 63 | msleep(100); |
64 | err = mantis_frontend_power(mantis, POWER_ON); | 64 | err = mantis_frontend_power(mantis, POWER_ON); |
65 | msleep(100); | 65 | msleep(100); |
66 | gpio_set_bits(mantis, config->reset, 1); | 66 | mantis_gpio_set_bits(mantis, config->reset, 1); |
67 | 67 | ||
68 | if (err == 0) { | 68 | if (err == 0) { |
69 | msleep(250); | 69 | msleep(250); |