@@ -710,18 +710,18 @@ enum i2400m_bri {
710
710
I2400M_BRI_MAC_REINIT = 1 << 3 ,
711
711
};
712
712
713
- extern void i2400m_bm_cmd_prepare (struct i2400m_bootrom_header * );
714
- extern int i2400m_dev_bootstrap (struct i2400m * , enum i2400m_bri );
715
- extern int i2400m_read_mac_addr (struct i2400m * );
716
- extern int i2400m_bootrom_init (struct i2400m * , enum i2400m_bri );
717
- extern int i2400m_is_boot_barker (struct i2400m * , const void * , size_t );
713
+ void i2400m_bm_cmd_prepare (struct i2400m_bootrom_header * );
714
+ int i2400m_dev_bootstrap (struct i2400m * , enum i2400m_bri );
715
+ int i2400m_read_mac_addr (struct i2400m * );
716
+ int i2400m_bootrom_init (struct i2400m * , enum i2400m_bri );
717
+ int i2400m_is_boot_barker (struct i2400m * , const void * , size_t );
718
718
static inline
719
719
int i2400m_is_d2h_barker (const void * buf )
720
720
{
721
721
const __le32 * barker = buf ;
722
722
return le32_to_cpu (* barker ) == I2400M_D2H_MSG_BARKER ;
723
723
}
724
- extern void i2400m_unknown_barker (struct i2400m * , const void * , size_t );
724
+ void i2400m_unknown_barker (struct i2400m * , const void * , size_t );
725
725
726
726
/* Make/grok boot-rom header commands */
727
727
@@ -789,32 +789,31 @@ unsigned i2400m_brh_get_signature(const struct i2400m_bootrom_header *hdr)
789
789
/*
790
790
* Driver / device setup and internal functions
791
791
*/
792
- extern void i2400m_init (struct i2400m * );
793
- extern int i2400m_reset (struct i2400m * , enum i2400m_reset_type );
794
- extern void i2400m_netdev_setup (struct net_device * net_dev );
795
- extern int i2400m_sysfs_setup (struct device_driver * );
796
- extern void i2400m_sysfs_release (struct device_driver * );
797
- extern int i2400m_tx_setup (struct i2400m * );
798
- extern void i2400m_wake_tx_work (struct work_struct * );
799
- extern void i2400m_tx_release (struct i2400m * );
800
-
801
- extern int i2400m_rx_setup (struct i2400m * );
802
- extern void i2400m_rx_release (struct i2400m * );
803
-
804
- extern void i2400m_fw_cache (struct i2400m * );
805
- extern void i2400m_fw_uncache (struct i2400m * );
806
-
807
- extern void i2400m_net_rx (struct i2400m * , struct sk_buff * , unsigned ,
808
- const void * , int );
809
- extern void i2400m_net_erx (struct i2400m * , struct sk_buff * ,
810
- enum i2400m_cs );
811
- extern void i2400m_net_wake_stop (struct i2400m * );
792
+ void i2400m_init (struct i2400m * );
793
+ int i2400m_reset (struct i2400m * , enum i2400m_reset_type );
794
+ void i2400m_netdev_setup (struct net_device * net_dev );
795
+ int i2400m_sysfs_setup (struct device_driver * );
796
+ void i2400m_sysfs_release (struct device_driver * );
797
+ int i2400m_tx_setup (struct i2400m * );
798
+ void i2400m_wake_tx_work (struct work_struct * );
799
+ void i2400m_tx_release (struct i2400m * );
800
+
801
+ int i2400m_rx_setup (struct i2400m * );
802
+ void i2400m_rx_release (struct i2400m * );
803
+
804
+ void i2400m_fw_cache (struct i2400m * );
805
+ void i2400m_fw_uncache (struct i2400m * );
806
+
807
+ void i2400m_net_rx (struct i2400m * , struct sk_buff * , unsigned , const void * ,
808
+ int );
809
+ void i2400m_net_erx (struct i2400m * , struct sk_buff * , enum i2400m_cs );
810
+ void i2400m_net_wake_stop (struct i2400m * );
812
811
enum i2400m_pt ;
813
- extern int i2400m_tx (struct i2400m * , const void * , size_t , enum i2400m_pt );
812
+ int i2400m_tx (struct i2400m * , const void * , size_t , enum i2400m_pt );
814
813
815
814
#ifdef CONFIG_DEBUG_FS
816
- extern int i2400m_debugfs_add (struct i2400m * );
817
- extern void i2400m_debugfs_rm (struct i2400m * );
815
+ int i2400m_debugfs_add (struct i2400m * );
816
+ void i2400m_debugfs_rm (struct i2400m * );
818
817
#else
819
818
static inline int i2400m_debugfs_add (struct i2400m * i2400m )
820
819
{
@@ -824,8 +823,8 @@ static inline void i2400m_debugfs_rm(struct i2400m *i2400m) {}
824
823
#endif
825
824
826
825
/* Initialize/shutdown the device */
827
- extern int i2400m_dev_initialize (struct i2400m * );
828
- extern void i2400m_dev_shutdown (struct i2400m * );
826
+ int i2400m_dev_initialize (struct i2400m * );
827
+ void i2400m_dev_shutdown (struct i2400m * );
829
828
830
829
extern struct attribute_group i2400m_dev_attr_group ;
831
830
@@ -873,21 +872,21 @@ void i2400m_put(struct i2400m *i2400m)
873
872
dev_put (i2400m -> wimax_dev .net_dev );
874
873
}
875
874
876
- extern int i2400m_dev_reset_handle (struct i2400m * , const char * );
877
- extern int i2400m_pre_reset (struct i2400m * );
878
- extern int i2400m_post_reset (struct i2400m * );
879
- extern void i2400m_error_recovery (struct i2400m * );
875
+ int i2400m_dev_reset_handle (struct i2400m * , const char * );
876
+ int i2400m_pre_reset (struct i2400m * );
877
+ int i2400m_post_reset (struct i2400m * );
878
+ void i2400m_error_recovery (struct i2400m * );
880
879
881
880
/*
882
881
* _setup()/_release() are called by the probe/disconnect functions of
883
882
* the bus-specific drivers.
884
883
*/
885
- extern int i2400m_setup (struct i2400m * , enum i2400m_bri bm_flags );
886
- extern void i2400m_release (struct i2400m * );
884
+ int i2400m_setup (struct i2400m * , enum i2400m_bri bm_flags );
885
+ void i2400m_release (struct i2400m * );
887
886
888
- extern int i2400m_rx (struct i2400m * , struct sk_buff * );
889
- extern struct i2400m_msg_hdr * i2400m_tx_msg_get (struct i2400m * , size_t * );
890
- extern void i2400m_tx_msg_sent (struct i2400m * );
887
+ int i2400m_rx (struct i2400m * , struct sk_buff * );
888
+ struct i2400m_msg_hdr * i2400m_tx_msg_get (struct i2400m * , size_t * );
889
+ void i2400m_tx_msg_sent (struct i2400m * );
891
890
892
891
893
892
/*
@@ -900,31 +899,29 @@ struct device *i2400m_dev(struct i2400m *i2400m)
900
899
return i2400m -> wimax_dev .net_dev -> dev .parent ;
901
900
}
902
901
903
- extern int i2400m_msg_check_status (const struct i2400m_l3l4_hdr * ,
904
- char * , size_t );
905
- extern int i2400m_msg_size_check (struct i2400m * ,
906
- const struct i2400m_l3l4_hdr * , size_t );
907
- extern struct sk_buff * i2400m_msg_to_dev (struct i2400m * , const void * , size_t );
908
- extern void i2400m_msg_to_dev_cancel_wait (struct i2400m * , int );
909
- extern void i2400m_report_hook (struct i2400m * ,
910
- const struct i2400m_l3l4_hdr * , size_t );
911
- extern void i2400m_report_hook_work (struct work_struct * );
912
- extern int i2400m_cmd_enter_powersave (struct i2400m * );
913
- extern int i2400m_cmd_exit_idle (struct i2400m * );
914
- extern struct sk_buff * i2400m_get_device_info (struct i2400m * );
915
- extern int i2400m_firmware_check (struct i2400m * );
916
- extern int i2400m_set_idle_timeout (struct i2400m * , unsigned );
902
+ int i2400m_msg_check_status (const struct i2400m_l3l4_hdr * , char * , size_t );
903
+ int i2400m_msg_size_check (struct i2400m * , const struct i2400m_l3l4_hdr * ,
904
+ size_t );
905
+ struct sk_buff * i2400m_msg_to_dev (struct i2400m * , const void * , size_t );
906
+ void i2400m_msg_to_dev_cancel_wait (struct i2400m * , int );
907
+ void i2400m_report_hook (struct i2400m * , const struct i2400m_l3l4_hdr * ,
908
+ size_t );
909
+ void i2400m_report_hook_work (struct work_struct * );
910
+ int i2400m_cmd_enter_powersave (struct i2400m * );
911
+ int i2400m_cmd_exit_idle (struct i2400m * );
912
+ struct sk_buff * i2400m_get_device_info (struct i2400m * );
913
+ int i2400m_firmware_check (struct i2400m * );
914
+ int i2400m_set_idle_timeout (struct i2400m * , unsigned );
917
915
918
916
static inline
919
917
struct usb_endpoint_descriptor * usb_get_epd (struct usb_interface * iface , int ep )
920
918
{
921
919
return & iface -> cur_altsetting -> endpoint [ep ].desc ;
922
920
}
923
921
924
- extern int i2400m_op_rfkill_sw_toggle (struct wimax_dev * ,
925
- enum wimax_rf_state );
926
- extern void i2400m_report_tlv_rf_switches_status (
927
- struct i2400m * , const struct i2400m_tlv_rf_switches_status * );
922
+ int i2400m_op_rfkill_sw_toggle (struct wimax_dev * , enum wimax_rf_state );
923
+ void i2400m_report_tlv_rf_switches_status (struct i2400m * ,
924
+ const struct i2400m_tlv_rf_switches_status * );
928
925
929
926
/*
930
927
* Helpers for firmware backwards compatibility
@@ -968,8 +965,8 @@ void __i2400m_msleep(unsigned ms)
968
965
969
966
970
967
/* module initialization helpers */
971
- extern int i2400m_barker_db_init (const char * );
972
- extern void i2400m_barker_db_exit (void );
968
+ int i2400m_barker_db_init (const char * );
969
+ void i2400m_barker_db_exit (void );
973
970
974
971
975
972
0 commit comments