diff options
author | Geoff Levand <geoff@infradead.org> | 2015-01-12 20:00:20 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-01-22 01:31:21 -0500 |
commit | 6baa5ecd6e9631a71423578a4a95dc8b179df386 (patch) | |
tree | 473fb6708e99a20aa8dad3b96b302c07e71b7f86 /drivers/ps3 | |
parent | 5ae74630ee4fa98bbba7a7cd8ee6919fd9f38561 (diff) |
powerpc/ps3: Fix vuart sparse warnings
Fix sparse warnings like these:
drivers/ps3/ps3-vuart.c: warning: symbol 'ps3_vuart_disable_interrupt_tx' was not declared. Should it be static?
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/ps3')
-rw-r--r-- | drivers/ps3/ps3-vuart.c | 5 | ||||
-rw-r--r-- | drivers/ps3/vuart.h | 16 |
2 files changed, 16 insertions, 5 deletions
diff --git a/drivers/ps3/ps3-vuart.c b/drivers/ps3/ps3-vuart.c index bc1e5139ba29..d6db822bef84 100644 --- a/drivers/ps3/ps3-vuart.c +++ b/drivers/ps3/ps3-vuart.c | |||
@@ -151,11 +151,6 @@ static void __maybe_unused _dump_port_params(unsigned int port_number, | |||
151 | #endif | 151 | #endif |
152 | } | 152 | } |
153 | 153 | ||
154 | struct vuart_triggers { | ||
155 | unsigned long rx; | ||
156 | unsigned long tx; | ||
157 | }; | ||
158 | |||
159 | int ps3_vuart_get_triggers(struct ps3_system_bus_device *dev, | 154 | int ps3_vuart_get_triggers(struct ps3_system_bus_device *dev, |
160 | struct vuart_triggers *trig) | 155 | struct vuart_triggers *trig) |
161 | { | 156 | { |
diff --git a/drivers/ps3/vuart.h b/drivers/ps3/vuart.h index eb7f6d94a890..23358b719319 100644 --- a/drivers/ps3/vuart.h +++ b/drivers/ps3/vuart.h | |||
@@ -82,4 +82,20 @@ void ps3_vuart_cancel_async(struct ps3_system_bus_device *dev); | |||
82 | void ps3_vuart_clear_rx_bytes(struct ps3_system_bus_device *dev, | 82 | void ps3_vuart_clear_rx_bytes(struct ps3_system_bus_device *dev, |
83 | unsigned int bytes); | 83 | unsigned int bytes); |
84 | 84 | ||
85 | struct vuart_triggers { | ||
86 | unsigned long rx; | ||
87 | unsigned long tx; | ||
88 | }; | ||
89 | |||
90 | int ps3_vuart_get_triggers(struct ps3_system_bus_device *dev, | ||
91 | struct vuart_triggers *trig); | ||
92 | int ps3_vuart_set_triggers(struct ps3_system_bus_device *dev, unsigned int tx, | ||
93 | unsigned int rx); | ||
94 | int ps3_vuart_enable_interrupt_tx(struct ps3_system_bus_device *dev); | ||
95 | int ps3_vuart_disable_interrupt_tx(struct ps3_system_bus_device *dev); | ||
96 | int ps3_vuart_enable_interrupt_rx(struct ps3_system_bus_device *dev); | ||
97 | int ps3_vuart_disable_interrupt_rx(struct ps3_system_bus_device *dev); | ||
98 | int ps3_vuart_enable_interrupt_disconnect(struct ps3_system_bus_device *dev); | ||
99 | int ps3_vuart_disable_interrupt_disconnect(struct ps3_system_bus_device *dev); | ||
100 | |||
85 | #endif | 101 | #endif |