diff options
author | Sutharsan Ramamoorthy <srmt@cypress.com> | 2011-01-26 00:11:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-01-26 02:02:53 -0500 |
commit | af109f2e323e9dc6aeb49962e3bc0237ce653cb9 (patch) | |
tree | b5260949fdd6a5ad6f58c15554e0a5ef11d8f588 | |
parent | f5c28f2538f1b23db493be262468a9a2e8bb97b2 (diff) |
Staging: Westbridge: fix EXPORT_SYMBOL errors reported by checkpatch.pl
This patch fixes errors reported by checkpatch.pl
in westbridge device controller driver in the staging tree.
File containing EXPORT_SYMBOL() macros for all the APIs exported
by the westbridge software has been removed. EXPORT_SYMBOL()
macros are added after the corresponding function definitions.
Signed-off-by: Sutharsan Ramamoorthy <srmt@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
6 files changed, 80 insertions, 149 deletions
diff --git a/drivers/staging/westbridge/astoria/api/src/cyasmisc.c b/drivers/staging/westbridge/astoria/api/src/cyasmisc.c index 10a52a1ac6fb..7852410b0a4c 100644 --- a/drivers/staging/westbridge/astoria/api/src/cyasmisc.c +++ b/drivers/staging/westbridge/astoria/api/src/cyasmisc.c | |||
@@ -926,6 +926,8 @@ destroy: | |||
926 | 926 | ||
927 | return ret; | 927 | return ret; |
928 | } | 928 | } |
929 | EXPORT_SYMBOL(cy_as_misc_get_firmware_version); | ||
930 | |||
929 | static cy_as_return_status_t | 931 | static cy_as_return_status_t |
930 | my_handle_response_read_m_c_u_register(cy_as_device *dev_p, | 932 | my_handle_response_read_m_c_u_register(cy_as_device *dev_p, |
931 | cy_as_ll_request_response *req_p, | 933 | cy_as_ll_request_response *req_p, |
@@ -1115,7 +1117,7 @@ destroy: | |||
1115 | 1117 | ||
1116 | return ret; | 1118 | return ret; |
1117 | } | 1119 | } |
1118 | 1120 | EXPORT_SYMBOL(cy_as_misc_read_m_c_u_register); | |
1119 | 1121 | ||
1120 | cy_as_return_status_t | 1122 | cy_as_return_status_t |
1121 | cy_as_misc_write_m_c_u_register(cy_as_device_handle handle, | 1123 | cy_as_misc_write_m_c_u_register(cy_as_device_handle handle, |
@@ -1336,6 +1338,7 @@ cy_as_misc_reset(cy_as_device_handle handle, | |||
1336 | 1338 | ||
1337 | return ret; | 1339 | return ret; |
1338 | } | 1340 | } |
1341 | EXPORT_SYMBOL(cy_as_misc_reset); | ||
1339 | 1342 | ||
1340 | static cy_as_return_status_t | 1343 | static cy_as_return_status_t |
1341 | get_unallocated_resource(cy_as_device *dev_p, cy_as_resource_type resource) | 1344 | get_unallocated_resource(cy_as_device *dev_p, cy_as_resource_type resource) |
@@ -1508,6 +1511,8 @@ destroy: | |||
1508 | 1511 | ||
1509 | return ret; | 1512 | return ret; |
1510 | } | 1513 | } |
1514 | EXPORT_SYMBOL(cy_as_misc_acquire_resource); | ||
1515 | |||
1511 | cy_as_return_status_t | 1516 | cy_as_return_status_t |
1512 | cy_as_misc_release_resource(cy_as_device_handle handle, | 1517 | cy_as_misc_release_resource(cy_as_device_handle handle, |
1513 | cy_as_resource_type resource) | 1518 | cy_as_resource_type resource) |
@@ -1560,6 +1565,7 @@ cy_as_misc_release_resource(cy_as_device_handle handle, | |||
1560 | 1565 | ||
1561 | return CY_AS_ERROR_SUCCESS; | 1566 | return CY_AS_ERROR_SUCCESS; |
1562 | } | 1567 | } |
1568 | EXPORT_SYMBOL(cy_as_misc_release_resource); | ||
1563 | 1569 | ||
1564 | cy_as_return_status_t | 1570 | cy_as_return_status_t |
1565 | cy_as_misc_set_trace_level(cy_as_device_handle handle, | 1571 | cy_as_misc_set_trace_level(cy_as_device_handle handle, |
@@ -1718,6 +1724,7 @@ destroy: | |||
1718 | 1724 | ||
1719 | return ret; | 1725 | return ret; |
1720 | } | 1726 | } |
1727 | EXPORT_SYMBOL(cy_as_misc_heart_beat_control); | ||
1721 | 1728 | ||
1722 | static cy_as_return_status_t | 1729 | static cy_as_return_status_t |
1723 | my_set_sd_clock_freq( | 1730 | my_set_sd_clock_freq( |
@@ -1805,6 +1812,7 @@ cy_as_misc_set_low_speed_sd_freq( | |||
1805 | 1812 | ||
1806 | return my_set_sd_clock_freq(dev_p, 0, (uint8_t)setting, cb, client); | 1813 | return my_set_sd_clock_freq(dev_p, 0, (uint8_t)setting, cb, client); |
1807 | } | 1814 | } |
1815 | EXPORT_SYMBOL(cy_as_misc_set_low_speed_sd_freq); | ||
1808 | 1816 | ||
1809 | cy_as_return_status_t | 1817 | cy_as_return_status_t |
1810 | cy_as_misc_set_high_speed_sd_freq( | 1818 | cy_as_misc_set_high_speed_sd_freq( |
@@ -1830,6 +1838,7 @@ cy_as_misc_set_high_speed_sd_freq( | |||
1830 | 1838 | ||
1831 | return my_set_sd_clock_freq(dev_p, 1, (uint8_t)setting, cb, client); | 1839 | return my_set_sd_clock_freq(dev_p, 1, (uint8_t)setting, cb, client); |
1832 | } | 1840 | } |
1841 | EXPORT_SYMBOL(cy_as_misc_set_high_speed_sd_freq); | ||
1833 | 1842 | ||
1834 | cy_as_return_status_t | 1843 | cy_as_return_status_t |
1835 | cy_as_misc_get_gpio_value(cy_as_device_handle handle, | 1844 | cy_as_misc_get_gpio_value(cy_as_device_handle handle, |
@@ -1921,7 +1930,7 @@ destroy: | |||
1921 | 1930 | ||
1922 | return ret; | 1931 | return ret; |
1923 | } | 1932 | } |
1924 | 1933 | EXPORT_SYMBOL(cy_as_misc_get_gpio_value); | |
1925 | 1934 | ||
1926 | cy_as_return_status_t | 1935 | cy_as_return_status_t |
1927 | cy_as_misc_set_gpio_value(cy_as_device_handle handle, | 1936 | cy_as_misc_set_gpio_value(cy_as_device_handle handle, |
@@ -2020,6 +2029,7 @@ destroy: | |||
2020 | 2029 | ||
2021 | return ret; | 2030 | return ret; |
2022 | } | 2031 | } |
2032 | EXPORT_SYMBOL(cy_as_misc_set_gpio_value); | ||
2023 | 2033 | ||
2024 | static cy_as_return_status_t | 2034 | static cy_as_return_status_t |
2025 | my_enter_standby(cy_as_device *dev_p, cy_bool pin) | 2035 | my_enter_standby(cy_as_device *dev_p, cy_bool pin) |
@@ -2213,6 +2223,7 @@ destroy: | |||
2213 | 2223 | ||
2214 | return ret; | 2224 | return ret; |
2215 | } | 2225 | } |
2226 | EXPORT_SYMBOL(cy_as_misc_enter_standby); | ||
2216 | 2227 | ||
2217 | cy_as_return_status_t | 2228 | cy_as_return_status_t |
2218 | cy_as_misc_enter_standby_e_x_u(cy_as_device_handle handle, | 2229 | cy_as_misc_enter_standby_e_x_u(cy_as_device_handle handle, |
@@ -2425,6 +2436,7 @@ try_wakeup_again: | |||
2425 | 2436 | ||
2426 | return ret; | 2437 | return ret; |
2427 | } | 2438 | } |
2439 | EXPORT_SYMBOL(cy_as_misc_leave_standby); | ||
2428 | 2440 | ||
2429 | cy_as_return_status_t | 2441 | cy_as_return_status_t |
2430 | cy_as_misc_register_callback( | 2442 | cy_as_misc_register_callback( |
@@ -2526,7 +2538,7 @@ destroy: | |||
2526 | 2538 | ||
2527 | return ret; | 2539 | return ret; |
2528 | } | 2540 | } |
2529 | 2541 | EXPORT_SYMBOL(cy_as_misc_storage_changed); | |
2530 | 2542 | ||
2531 | cy_as_return_status_t | 2543 | cy_as_return_status_t |
2532 | cy_as_misc_enter_suspend( | 2544 | cy_as_misc_enter_suspend( |
@@ -2634,6 +2646,7 @@ destroy: | |||
2634 | 2646 | ||
2635 | return ret; | 2647 | return ret; |
2636 | } | 2648 | } |
2649 | EXPORT_SYMBOL(cy_as_misc_enter_suspend); | ||
2637 | 2650 | ||
2638 | cy_as_return_status_t | 2651 | cy_as_return_status_t |
2639 | cy_as_misc_leave_suspend( | 2652 | cy_as_misc_leave_suspend( |
@@ -2704,6 +2717,7 @@ cy_as_misc_leave_suspend( | |||
2704 | 2717 | ||
2705 | return ret; | 2718 | return ret; |
2706 | } | 2719 | } |
2720 | EXPORT_SYMBOL(cy_as_misc_leave_suspend); | ||
2707 | 2721 | ||
2708 | cy_as_return_status_t | 2722 | cy_as_return_status_t |
2709 | cy_as_misc_reserve_l_n_a_boot_area(cy_as_device_handle handle, | 2723 | cy_as_misc_reserve_l_n_a_boot_area(cy_as_device_handle handle, |
diff --git a/drivers/staging/westbridge/astoria/api/src/cyasmtp.c b/drivers/staging/westbridge/astoria/api/src/cyasmtp.c index d5a8e45010dc..368984633874 100644 --- a/drivers/staging/westbridge/astoria/api/src/cyasmtp.c +++ b/drivers/staging/westbridge/astoria/api/src/cyasmtp.c | |||
@@ -402,6 +402,7 @@ destroy: | |||
402 | 402 | ||
403 | return ret; | 403 | return ret; |
404 | } | 404 | } |
405 | EXPORT_SYMBOL(cy_as_mtp_start); | ||
405 | 406 | ||
406 | static cy_as_return_status_t | 407 | static cy_as_return_status_t |
407 | my_handle_response_mtp_stop(cy_as_device *dev_p, | 408 | my_handle_response_mtp_stop(cy_as_device *dev_p, |
@@ -744,6 +745,7 @@ cy_as_mtp_init_send_object(cy_as_device_handle handle, | |||
744 | client, CY_RQT_INIT_SEND_OBJECT); | 745 | client, CY_RQT_INIT_SEND_OBJECT); |
745 | 746 | ||
746 | } | 747 | } |
748 | EXPORT_SYMBOL(cy_as_mtp_init_send_object); | ||
747 | 749 | ||
748 | cy_as_return_status_t | 750 | cy_as_return_status_t |
749 | cy_as_mtp_init_get_object(cy_as_device_handle handle, | 751 | cy_as_mtp_init_get_object(cy_as_device_handle handle, |
@@ -763,6 +765,7 @@ cy_as_mtp_init_get_object(cy_as_device_handle handle, | |||
763 | transaction_id, cb, client, CY_RQT_INIT_GET_OBJECT); | 765 | transaction_id, cb, client, CY_RQT_INIT_GET_OBJECT); |
764 | 766 | ||
765 | } | 767 | } |
768 | EXPORT_SYMBOL(cy_as_mtp_init_get_object); | ||
766 | 769 | ||
767 | static cy_as_return_status_t | 770 | static cy_as_return_status_t |
768 | my_handle_response_cancel_send_object(cy_as_device *dev_p, | 771 | my_handle_response_cancel_send_object(cy_as_device *dev_p, |
@@ -850,6 +853,7 @@ destroy: | |||
850 | 853 | ||
851 | return ret; | 854 | return ret; |
852 | } | 855 | } |
856 | EXPORT_SYMBOL(cy_as_mtp_cancel_send_object); | ||
853 | 857 | ||
854 | static cy_as_return_status_t | 858 | static cy_as_return_status_t |
855 | my_handle_response_cancel_get_object(cy_as_device *dev_p, | 859 | my_handle_response_cancel_get_object(cy_as_device *dev_p, |
@@ -937,6 +941,7 @@ destroy: | |||
937 | 941 | ||
938 | return ret; | 942 | return ret; |
939 | } | 943 | } |
944 | EXPORT_SYMBOL(cy_as_mtp_cancel_get_object); | ||
940 | 945 | ||
941 | cy_as_return_status_t | 946 | cy_as_return_status_t |
942 | cy_as_mtp_send_block_table(cy_as_device_handle handle, | 947 | cy_as_mtp_send_block_table(cy_as_device_handle handle, |
@@ -1058,6 +1063,7 @@ cy_as_mtp_storage_only_start(cy_as_device_handle handle) | |||
1058 | dev_p->is_storage_only_mode = cy_true; | 1063 | dev_p->is_storage_only_mode = cy_true; |
1059 | return CY_AS_ERROR_SUCCESS; | 1064 | return CY_AS_ERROR_SUCCESS; |
1060 | } | 1065 | } |
1066 | EXPORT_SYMBOL(cy_as_mtp_storage_only_start); | ||
1061 | 1067 | ||
1062 | cy_as_return_status_t | 1068 | cy_as_return_status_t |
1063 | cy_as_mtp_storage_only_stop(cy_as_device_handle handle, | 1069 | cy_as_mtp_storage_only_stop(cy_as_device_handle handle, |
@@ -1126,3 +1132,5 @@ destroy: | |||
1126 | 1132 | ||
1127 | return ret; | 1133 | return ret; |
1128 | } | 1134 | } |
1135 | EXPORT_SYMBOL(cy_as_mtp_storage_only_stop); | ||
1136 | |||
diff --git a/drivers/staging/westbridge/astoria/api/src/cyasstorage.c b/drivers/staging/westbridge/astoria/api/src/cyasstorage.c index 083d869e57c6..2451404b88d4 100644 --- a/drivers/staging/westbridge/astoria/api/src/cyasstorage.c +++ b/drivers/staging/westbridge/astoria/api/src/cyasstorage.c | |||
@@ -522,7 +522,7 @@ destroy: | |||
522 | 522 | ||
523 | return ret; | 523 | return ret; |
524 | } | 524 | } |
525 | 525 | EXPORT_SYMBOL(cy_as_storage_start); | |
526 | 526 | ||
527 | static cy_as_return_status_t | 527 | static cy_as_return_status_t |
528 | my_handle_response_storage_stop(cy_as_device *dev_p, | 528 | my_handle_response_storage_stop(cy_as_device *dev_p, |
@@ -632,6 +632,7 @@ destroy: | |||
632 | 632 | ||
633 | return ret; | 633 | return ret; |
634 | } | 634 | } |
635 | EXPORT_SYMBOL(cy_as_storage_stop); | ||
635 | 636 | ||
636 | cy_as_return_status_t | 637 | cy_as_return_status_t |
637 | cy_as_storage_register_callback(cy_as_device_handle handle, | 638 | cy_as_storage_register_callback(cy_as_device_handle handle, |
@@ -655,7 +656,7 @@ cy_as_storage_register_callback(cy_as_device_handle handle, | |||
655 | 656 | ||
656 | return CY_AS_ERROR_SUCCESS; | 657 | return CY_AS_ERROR_SUCCESS; |
657 | } | 658 | } |
658 | 659 | EXPORT_SYMBOL(cy_as_storage_register_callback); | |
659 | 660 | ||
660 | 661 | ||
661 | static cy_as_return_status_t | 662 | static cy_as_return_status_t |
@@ -783,6 +784,7 @@ cy_as_storage_claim(cy_as_device_handle handle, | |||
783 | return my_storage_claim(dev_p, NULL, bus, device, | 784 | return my_storage_claim(dev_p, NULL, bus, device, |
784 | CY_AS_REQUEST_RESPONSE_MS, cb, client); | 785 | CY_AS_REQUEST_RESPONSE_MS, cb, client); |
785 | } | 786 | } |
787 | EXPORT_SYMBOL(cy_as_storage_claim); | ||
786 | 788 | ||
787 | static cy_as_return_status_t | 789 | static cy_as_return_status_t |
788 | my_handle_response_storage_release(cy_as_device *dev_p, | 790 | my_handle_response_storage_release(cy_as_device *dev_p, |
@@ -911,6 +913,7 @@ cy_as_storage_release(cy_as_device_handle handle, | |||
911 | return my_storage_release(dev_p, NULL, bus, device, | 913 | return my_storage_release(dev_p, NULL, bus, device, |
912 | CY_AS_REQUEST_RESPONSE_MS, cb, client); | 914 | CY_AS_REQUEST_RESPONSE_MS, cb, client); |
913 | } | 915 | } |
916 | EXPORT_SYMBOL(cy_as_storage_release); | ||
914 | 917 | ||
915 | static cy_as_return_status_t | 918 | static cy_as_return_status_t |
916 | my_handle_response_storage_query_bus(cy_as_device *dev_p, | 919 | my_handle_response_storage_query_bus(cy_as_device *dev_p, |
@@ -1059,6 +1062,7 @@ cy_as_storage_query_bus(cy_as_device_handle handle, | |||
1059 | return my_storage_query_bus(dev_p, bus, cy_as_media_max_media_value, | 1062 | return my_storage_query_bus(dev_p, bus, cy_as_media_max_media_value, |
1060 | CY_AS_REQUEST_RESPONSE_MS, count, cb, client); | 1063 | CY_AS_REQUEST_RESPONSE_MS, count, cb, client); |
1061 | } | 1064 | } |
1065 | EXPORT_SYMBOL(cy_as_storage_query_bus); | ||
1062 | 1066 | ||
1063 | cy_as_return_status_t | 1067 | cy_as_return_status_t |
1064 | cy_as_storage_query_media(cy_as_device_handle handle, | 1068 | cy_as_storage_query_media(cy_as_device_handle handle, |
@@ -1086,6 +1090,7 @@ cy_as_storage_query_media(cy_as_device_handle handle, | |||
1086 | return my_storage_query_bus(dev_p, bus, type, CY_AS_REQUEST_RESPONSE_EX, | 1090 | return my_storage_query_bus(dev_p, bus, type, CY_AS_REQUEST_RESPONSE_EX, |
1087 | count, cb, client); | 1091 | count, cb, client); |
1088 | } | 1092 | } |
1093 | EXPORT_SYMBOL(cy_as_storage_query_media); | ||
1089 | 1094 | ||
1090 | static cy_as_return_status_t | 1095 | static cy_as_return_status_t |
1091 | my_handle_response_storage_query_device(cy_as_device *dev_p, | 1096 | my_handle_response_storage_query_device(cy_as_device *dev_p, |
@@ -1260,6 +1265,7 @@ cy_as_storage_query_device(cy_as_device_handle handle, | |||
1260 | CY_AS_REQUEST_RESPONSE_MS, data_p->bus, | 1265 | CY_AS_REQUEST_RESPONSE_MS, data_p->bus, |
1261 | data_p->device, cb, client); | 1266 | data_p->device, cb, client); |
1262 | } | 1267 | } |
1268 | EXPORT_SYMBOL(cy_as_storage_query_device); | ||
1263 | 1269 | ||
1264 | static cy_as_return_status_t | 1270 | static cy_as_return_status_t |
1265 | my_handle_response_storage_query_unit(cy_as_device *dev_p, | 1271 | my_handle_response_storage_query_unit(cy_as_device *dev_p, |
@@ -1434,7 +1440,7 @@ cy_as_storage_query_unit(cy_as_device_handle handle, | |||
1434 | return my_storage_query_unit(dev_p, data_p, CY_AS_REQUEST_RESPONSE_MS, | 1440 | return my_storage_query_unit(dev_p, data_p, CY_AS_REQUEST_RESPONSE_MS, |
1435 | data_p->bus, data_p->device, data_p->unit, cb, client); | 1441 | data_p->bus, data_p->device, data_p->unit, cb, client); |
1436 | } | 1442 | } |
1437 | 1443 | EXPORT_SYMBOL(cy_as_storage_query_unit); | |
1438 | 1444 | ||
1439 | static cy_as_return_status_t | 1445 | static cy_as_return_status_t |
1440 | cy_as_get_block_size(cy_as_device *dev_p, | 1446 | cy_as_get_block_size(cy_as_device *dev_p, |
@@ -1615,6 +1621,7 @@ cy_as_storage_device_control(cy_as_device_handle handle, | |||
1615 | return my_storage_device_control(dev_p, bus, device, card_detect_en, | 1621 | return my_storage_device_control(dev_p, bus, device, card_detect_en, |
1616 | write_prot_en, config_detect, cb, client); | 1622 | write_prot_en, config_detect, cb, client); |
1617 | } | 1623 | } |
1624 | EXPORT_SYMBOL(cy_as_storage_device_control); | ||
1618 | 1625 | ||
1619 | static void | 1626 | static void |
1620 | cy_as_async_storage_callback(cy_as_device *dev_p, | 1627 | cy_as_async_storage_callback(cy_as_device *dev_p, |
@@ -2069,6 +2076,7 @@ cy_as_storage_read(cy_as_device_handle handle, | |||
2069 | CY_RQT_READ_BLOCK, bus, device, | 2076 | CY_RQT_READ_BLOCK, bus, device, |
2070 | unit, block, data_p, num_blocks); | 2077 | unit, block, data_p, num_blocks); |
2071 | } | 2078 | } |
2079 | EXPORT_SYMBOL(cy_as_storage_read); | ||
2072 | 2080 | ||
2073 | cy_as_return_status_t | 2081 | cy_as_return_status_t |
2074 | cy_as_storage_write(cy_as_device_handle handle, | 2082 | cy_as_storage_write(cy_as_device_handle handle, |
@@ -2089,7 +2097,7 @@ cy_as_storage_write(cy_as_device_handle handle, | |||
2089 | CY_RQT_WRITE_BLOCK, bus, device, | 2097 | CY_RQT_WRITE_BLOCK, bus, device, |
2090 | unit, block, data_p, num_blocks); | 2098 | unit, block, data_p, num_blocks); |
2091 | } | 2099 | } |
2092 | 2100 | EXPORT_SYMBOL(cy_as_storage_write); | |
2093 | 2101 | ||
2094 | cy_as_return_status_t | 2102 | cy_as_return_status_t |
2095 | cy_as_storage_read_async(cy_as_device_handle handle, | 2103 | cy_as_storage_read_async(cy_as_device_handle handle, |
@@ -2110,6 +2118,7 @@ cy_as_storage_read_async(cy_as_device_handle handle, | |||
2110 | CY_AS_REQUEST_RESPONSE_MS, bus, device, unit, | 2118 | CY_AS_REQUEST_RESPONSE_MS, bus, device, unit, |
2111 | block, data_p, num_blocks, NULL, callback); | 2119 | block, data_p, num_blocks, NULL, callback); |
2112 | } | 2120 | } |
2121 | EXPORT_SYMBOL(cy_as_storage_read_async); | ||
2113 | 2122 | ||
2114 | cy_as_return_status_t | 2123 | cy_as_return_status_t |
2115 | cy_as_storage_write_async(cy_as_device_handle handle, | 2124 | cy_as_storage_write_async(cy_as_device_handle handle, |
@@ -2133,7 +2142,7 @@ cy_as_storage_write_async(cy_as_device_handle handle, | |||
2133 | CY_AS_REQUEST_RESPONSE_MS, bus, device, unit, block, | 2142 | CY_AS_REQUEST_RESPONSE_MS, bus, device, unit, block, |
2134 | data_p, num_blocks, NULL, callback); | 2143 | data_p, num_blocks, NULL, callback); |
2135 | } | 2144 | } |
2136 | 2145 | EXPORT_SYMBOL(cy_as_storage_write_async); | |
2137 | 2146 | ||
2138 | static void | 2147 | static void |
2139 | my_storage_cancel_callback( | 2148 | my_storage_cancel_callback( |
@@ -2196,6 +2205,7 @@ cy_as_storage_cancel_async(cy_as_device_handle handle) | |||
2196 | 2205 | ||
2197 | return CY_AS_ERROR_SUCCESS; | 2206 | return CY_AS_ERROR_SUCCESS; |
2198 | } | 2207 | } |
2208 | EXPORT_SYMBOL(cy_as_storage_cancel_async); | ||
2199 | 2209 | ||
2200 | /* | 2210 | /* |
2201 | * This function does all the API side clean-up associated with | 2211 | * This function does all the API side clean-up associated with |
@@ -2374,6 +2384,7 @@ destroy: | |||
2374 | 2384 | ||
2375 | return ret; | 2385 | return ret; |
2376 | } | 2386 | } |
2387 | EXPORT_SYMBOL(cy_as_storage_sd_register_read); | ||
2377 | 2388 | ||
2378 | cy_as_return_status_t | 2389 | cy_as_return_status_t |
2379 | cy_as_storage_create_p_partition( | 2390 | cy_as_storage_create_p_partition( |
@@ -2450,6 +2461,7 @@ destroy: | |||
2450 | 2461 | ||
2451 | return ret; | 2462 | return ret; |
2452 | } | 2463 | } |
2464 | EXPORT_SYMBOL(cy_as_storage_create_p_partition); | ||
2453 | 2465 | ||
2454 | cy_as_return_status_t | 2466 | cy_as_return_status_t |
2455 | cy_as_storage_remove_p_partition( | 2467 | cy_as_storage_remove_p_partition( |
@@ -2519,6 +2531,7 @@ destroy: | |||
2519 | 2531 | ||
2520 | return ret; | 2532 | return ret; |
2521 | } | 2533 | } |
2534 | EXPORT_SYMBOL(cy_as_storage_remove_p_partition); | ||
2522 | 2535 | ||
2523 | static cy_as_return_status_t | 2536 | static cy_as_return_status_t |
2524 | my_handle_response_get_transfer_amount(cy_as_device *dev_p, | 2537 | my_handle_response_get_transfer_amount(cy_as_device *dev_p, |
@@ -2621,6 +2634,7 @@ destroy: | |||
2621 | return ret; | 2634 | return ret; |
2622 | 2635 | ||
2623 | } | 2636 | } |
2637 | EXPORT_SYMBOL(cy_as_storage_get_transfer_amount); | ||
2624 | 2638 | ||
2625 | cy_as_return_status_t | 2639 | cy_as_return_status_t |
2626 | cy_as_storage_erase( | 2640 | cy_as_storage_erase( |
@@ -2722,6 +2736,7 @@ destroy: | |||
2722 | 2736 | ||
2723 | return ret; | 2737 | return ret; |
2724 | } | 2738 | } |
2739 | EXPORT_SYMBOL(cy_as_storage_erase); | ||
2725 | 2740 | ||
2726 | static void | 2741 | static void |
2727 | cy_as_storage_func_callback(cy_as_device *dev_p, | 2742 | cy_as_storage_func_callback(cy_as_device *dev_p, |
@@ -3005,6 +3020,7 @@ cy_as_sdio_direct_read( | |||
3005 | return cy_as_sdio_direct_io(handle, bus, device, n_function_no, | 3020 | return cy_as_sdio_direct_io(handle, bus, device, n_function_no, |
3006 | address, misc_buf, 0x00, cy_false, data_p); | 3021 | address, misc_buf, 0x00, cy_false, data_p); |
3007 | } | 3022 | } |
3023 | EXPORT_SYMBOL(cy_as_sdio_direct_read); | ||
3008 | 3024 | ||
3009 | cy_as_return_status_t | 3025 | cy_as_return_status_t |
3010 | cy_as_sdio_direct_write( | 3026 | cy_as_sdio_direct_write( |
@@ -3020,6 +3036,7 @@ cy_as_sdio_direct_write( | |||
3020 | return cy_as_sdio_direct_io(handle, bus, device, n_function_no, | 3036 | return cy_as_sdio_direct_io(handle, bus, device, n_function_no, |
3021 | address, misc_buf, argument, cy_true, data_p); | 3037 | address, misc_buf, argument, cy_true, data_p); |
3022 | } | 3038 | } |
3039 | EXPORT_SYMBOL(cy_as_sdio_direct_write); | ||
3023 | 3040 | ||
3024 | /*Cmd53 IO*/ | 3041 | /*Cmd53 IO*/ |
3025 | cy_as_return_status_t | 3042 | cy_as_return_status_t |
@@ -3403,6 +3420,7 @@ cy_as_sdio_extended_read( | |||
3403 | n_function_no, address, misc_buf, argument, cy_false, | 3420 | n_function_no, address, misc_buf, argument, cy_false, |
3404 | data_p, callback); | 3421 | data_p, callback); |
3405 | } | 3422 | } |
3423 | EXPORT_SYMBOL(cy_as_sdio_extended_read); | ||
3406 | 3424 | ||
3407 | /* CMD53 Extended Write*/ | 3425 | /* CMD53 Extended Write*/ |
3408 | cy_as_return_status_t | 3426 | cy_as_return_status_t |
@@ -3426,7 +3444,7 @@ cy_as_sdio_extended_write( | |||
3426 | n_function_no, address, misc_buf, argument, cy_true, | 3444 | n_function_no, address, misc_buf, argument, cy_true, |
3427 | data_p, callback); | 3445 | data_p, callback); |
3428 | } | 3446 | } |
3429 | 3447 | EXPORT_SYMBOL(cy_as_sdio_extended_write); | |
3430 | 3448 | ||
3431 | /* Read the CIS info tuples for the given function and Tuple ID*/ | 3449 | /* Read the CIS info tuples for the given function and Tuple ID*/ |
3432 | cy_as_return_status_t | 3450 | cy_as_return_status_t |
@@ -3617,6 +3635,7 @@ destroy: | |||
3617 | cy_as_ll_destroy_response(dev_p, reply_p); | 3635 | cy_as_ll_destroy_response(dev_p, reply_p); |
3618 | return ret; | 3636 | return ret; |
3619 | } | 3637 | } |
3638 | EXPORT_SYMBOL(cy_as_sdio_query_card); | ||
3620 | 3639 | ||
3621 | /*Reset SDIO card. */ | 3640 | /*Reset SDIO card. */ |
3622 | cy_as_return_status_t | 3641 | cy_as_return_status_t |
@@ -3767,6 +3786,7 @@ destroy: | |||
3767 | cy_as_ll_destroy_response(dev_p, reply_p); | 3786 | cy_as_ll_destroy_response(dev_p, reply_p); |
3768 | return ret; | 3787 | return ret; |
3769 | } | 3788 | } |
3789 | EXPORT_SYMBOL(cy_as_sdio_init_function); | ||
3770 | 3790 | ||
3771 | /*Query individual functions. */ | 3791 | /*Query individual functions. */ |
3772 | cy_as_return_status_t | 3792 | cy_as_return_status_t |
@@ -4066,6 +4086,7 @@ cy_as_sdio_set_blocksize( | |||
4066 | bus, n_function_no, blocksize); | 4086 | bus, n_function_no, blocksize); |
4067 | return ret; | 4087 | return ret; |
4068 | } | 4088 | } |
4089 | EXPORT_SYMBOL(cy_as_sdio_set_blocksize); | ||
4069 | 4090 | ||
4070 | /* Deinitialize an SDIO function*/ | 4091 | /* Deinitialize an SDIO function*/ |
4071 | cy_as_return_status_t | 4092 | cy_as_return_status_t |
diff --git a/drivers/staging/westbridge/astoria/api/src/cyasusb.c b/drivers/staging/westbridge/astoria/api/src/cyasusb.c index 7777d9a60a52..d9cb7d49ae7d 100644 --- a/drivers/staging/westbridge/astoria/api/src/cyasusb.c +++ b/drivers/staging/westbridge/astoria/api/src/cyasusb.c | |||
@@ -800,6 +800,7 @@ destroy: | |||
800 | 800 | ||
801 | return ret; | 801 | return ret; |
802 | } | 802 | } |
803 | EXPORT_SYMBOL(cy_as_usb_start); | ||
803 | 804 | ||
804 | void | 805 | void |
805 | cy_as_usb_reset(cy_as_device *dev_p) | 806 | cy_as_usb_reset(cy_as_device *dev_p) |
@@ -977,6 +978,7 @@ destroy: | |||
977 | 978 | ||
978 | return ret; | 979 | return ret; |
979 | } | 980 | } |
981 | EXPORT_SYMBOL(cy_as_usb_stop); | ||
980 | 982 | ||
981 | /* | 983 | /* |
982 | * This function registers a callback to be called when | 984 | * This function registers a callback to be called when |
@@ -1004,7 +1006,7 @@ cy_as_usb_register_callback(cy_as_device_handle handle, | |||
1004 | dev_p->usb_event_cb_ms = callback; | 1006 | dev_p->usb_event_cb_ms = callback; |
1005 | return CY_AS_ERROR_SUCCESS; | 1007 | return CY_AS_ERROR_SUCCESS; |
1006 | } | 1008 | } |
1007 | 1009 | EXPORT_SYMBOL(cy_as_usb_register_callback); | |
1008 | 1010 | ||
1009 | static cy_as_return_status_t | 1011 | static cy_as_return_status_t |
1010 | my_handle_response_no_data(cy_as_device *dev_p, | 1012 | my_handle_response_no_data(cy_as_device *dev_p, |
@@ -1124,6 +1126,7 @@ destroy: | |||
1124 | 1126 | ||
1125 | return ret; | 1127 | return ret; |
1126 | } | 1128 | } |
1129 | EXPORT_SYMBOL(cy_as_usb_connect); | ||
1127 | 1130 | ||
1128 | static cy_as_return_status_t | 1131 | static cy_as_return_status_t |
1129 | my_handle_response_disconnect(cy_as_device *dev_p, | 1132 | my_handle_response_disconnect(cy_as_device *dev_p, |
@@ -1222,6 +1225,7 @@ destroy: | |||
1222 | 1225 | ||
1223 | return ret; | 1226 | return ret; |
1224 | } | 1227 | } |
1228 | EXPORT_SYMBOL(cy_as_usb_disconnect); | ||
1225 | 1229 | ||
1226 | static cy_as_return_status_t | 1230 | static cy_as_return_status_t |
1227 | my_handle_response_set_enum_config(cy_as_device *dev_p, | 1231 | my_handle_response_set_enum_config(cy_as_device *dev_p, |
@@ -1437,7 +1441,7 @@ cy_as_usb_set_enum_config(cy_as_device_handle handle, | |||
1437 | client | 1441 | client |
1438 | ); | 1442 | ); |
1439 | } | 1443 | } |
1440 | 1444 | EXPORT_SYMBOL(cy_as_usb_set_enum_config); | |
1441 | 1445 | ||
1442 | static cy_as_return_status_t | 1446 | static cy_as_return_status_t |
1443 | my_handle_response_get_enum_config(cy_as_device *dev_p, | 1447 | my_handle_response_get_enum_config(cy_as_device *dev_p, |
@@ -1622,7 +1626,7 @@ cy_as_usb_get_enum_config(cy_as_device_handle handle, | |||
1622 | return my_usb_get_enum_config(handle, | 1626 | return my_usb_get_enum_config(handle, |
1623 | CY_AS_REQUEST_RESPONSE_MS, config_p, cb, client); | 1627 | CY_AS_REQUEST_RESPONSE_MS, config_p, cb, client); |
1624 | } | 1628 | } |
1625 | 1629 | EXPORT_SYMBOL(cy_as_usb_get_enum_config); | |
1626 | 1630 | ||
1627 | /* | 1631 | /* |
1628 | * This method sets the USB descriptor for a given entity. | 1632 | * This method sets the USB descriptor for a given entity. |
@@ -1705,6 +1709,7 @@ destroy: | |||
1705 | 1709 | ||
1706 | return ret; | 1710 | return ret; |
1707 | } | 1711 | } |
1712 | EXPORT_SYMBOL(cy_as_usb_set_descriptor); | ||
1708 | 1713 | ||
1709 | /* | 1714 | /* |
1710 | * This method clears all descriptors that were previously | 1715 | * This method clears all descriptors that were previously |
@@ -1771,6 +1776,7 @@ destroy: | |||
1771 | 1776 | ||
1772 | return ret; | 1777 | return ret; |
1773 | } | 1778 | } |
1779 | EXPORT_SYMBOL(cy_as_usb_clear_descriptors); | ||
1774 | 1780 | ||
1775 | static cy_as_return_status_t | 1781 | static cy_as_return_status_t |
1776 | my_handle_response_get_descriptor(cy_as_device *dev_p, | 1782 | my_handle_response_get_descriptor(cy_as_device *dev_p, |
@@ -1881,6 +1887,7 @@ destroy: | |||
1881 | 1887 | ||
1882 | return ret; | 1888 | return ret; |
1883 | } | 1889 | } |
1890 | EXPORT_SYMBOL(cy_as_usb_get_descriptor); | ||
1884 | 1891 | ||
1885 | cy_as_return_status_t | 1892 | cy_as_return_status_t |
1886 | cy_as_usb_set_physical_configuration(cy_as_device_handle handle, | 1893 | cy_as_usb_set_physical_configuration(cy_as_device_handle handle, |
@@ -1910,6 +1917,7 @@ cy_as_usb_set_physical_configuration(cy_as_device_handle handle, | |||
1910 | 1917 | ||
1911 | return CY_AS_ERROR_SUCCESS; | 1918 | return CY_AS_ERROR_SUCCESS; |
1912 | } | 1919 | } |
1920 | EXPORT_SYMBOL(cy_as_usb_set_physical_configuration); | ||
1913 | 1921 | ||
1914 | static cy_bool | 1922 | static cy_bool |
1915 | is_physical_valid(uint8_t config, cy_as_end_point_number_t ep) | 1923 | is_physical_valid(uint8_t config, cy_as_end_point_number_t ep) |
@@ -2027,6 +2035,7 @@ cy_as_usb_set_end_point_config(cy_as_device_handle handle, | |||
2027 | return cy_as_dma_enable_end_point(dev_p, ep, | 2035 | return cy_as_dma_enable_end_point(dev_p, ep, |
2028 | config_p->enabled, (cy_as_dma_direction)config_p->dir); | 2036 | config_p->enabled, (cy_as_dma_direction)config_p->dir); |
2029 | } | 2037 | } |
2038 | EXPORT_SYMBOL(cy_as_usb_set_end_point_config); | ||
2030 | 2039 | ||
2031 | cy_as_return_status_t | 2040 | cy_as_return_status_t |
2032 | cy_as_usb_get_end_point_config(cy_as_device_handle handle, | 2041 | cy_as_usb_get_end_point_config(cy_as_device_handle handle, |
@@ -2053,6 +2062,7 @@ cy_as_usb_get_end_point_config(cy_as_device_handle handle, | |||
2053 | 2062 | ||
2054 | return CY_AS_ERROR_SUCCESS; | 2063 | return CY_AS_ERROR_SUCCESS; |
2055 | } | 2064 | } |
2065 | EXPORT_SYMBOL(cy_as_usb_get_end_point_config); | ||
2056 | 2066 | ||
2057 | /* | 2067 | /* |
2058 | * Commit the configuration of the various endpoints to the hardware. | 2068 | * Commit the configuration of the various endpoints to the hardware. |
@@ -2180,6 +2190,7 @@ destroy: | |||
2180 | 2190 | ||
2181 | return ret; | 2191 | return ret; |
2182 | } | 2192 | } |
2193 | EXPORT_SYMBOL(cy_as_usb_commit_config); | ||
2183 | 2194 | ||
2184 | static void | 2195 | static void |
2185 | sync_request_callback(cy_as_device *dev_p, | 2196 | sync_request_callback(cy_as_device *dev_p, |
@@ -2381,6 +2392,7 @@ cy_as_usb_read_data(cy_as_device_handle handle, | |||
2381 | 2392 | ||
2382 | return ret; | 2393 | return ret; |
2383 | } | 2394 | } |
2395 | EXPORT_SYMBOL(cy_as_usb_read_data); | ||
2384 | 2396 | ||
2385 | cy_as_return_status_t | 2397 | cy_as_return_status_t |
2386 | cy_as_usb_read_data_async(cy_as_device_handle handle, | 2398 | cy_as_usb_read_data_async(cy_as_device_handle handle, |
@@ -2459,6 +2471,7 @@ cy_as_usb_read_data_async(cy_as_device_handle handle, | |||
2459 | } | 2471 | } |
2460 | return ret; | 2472 | return ret; |
2461 | } | 2473 | } |
2474 | EXPORT_SYMBOL(cy_as_usb_read_data_async); | ||
2462 | 2475 | ||
2463 | cy_as_return_status_t | 2476 | cy_as_return_status_t |
2464 | cy_as_usb_write_data(cy_as_device_handle handle, | 2477 | cy_as_usb_write_data(cy_as_device_handle handle, |
@@ -2571,6 +2584,7 @@ cy_as_usb_write_data(cy_as_device_handle handle, | |||
2571 | ret = dev_p->usb_error; | 2584 | ret = dev_p->usb_error; |
2572 | return ret; | 2585 | return ret; |
2573 | } | 2586 | } |
2587 | EXPORT_SYMBOL(cy_as_usb_write_data); | ||
2574 | 2588 | ||
2575 | static void | 2589 | static void |
2576 | mtp_write_callback( | 2590 | mtp_write_callback( |
@@ -2736,6 +2750,7 @@ cy_as_usb_write_data_async(cy_as_device_handle handle, | |||
2736 | 2750 | ||
2737 | return CY_AS_ERROR_SUCCESS; | 2751 | return CY_AS_ERROR_SUCCESS; |
2738 | } | 2752 | } |
2753 | EXPORT_SYMBOL(cy_as_usb_write_data_async); | ||
2739 | 2754 | ||
2740 | static void | 2755 | static void |
2741 | my_usb_cancel_async_callback( | 2756 | my_usb_cancel_async_callback( |
@@ -2827,6 +2842,7 @@ cy_as_usb_cancel_async(cy_as_device_handle handle, | |||
2827 | 2842 | ||
2828 | return CY_AS_ERROR_SUCCESS; | 2843 | return CY_AS_ERROR_SUCCESS; |
2829 | } | 2844 | } |
2845 | EXPORT_SYMBOL(cy_as_usb_cancel_async); | ||
2830 | 2846 | ||
2831 | static void | 2847 | static void |
2832 | cy_as_usb_ack_callback( | 2848 | cy_as_usb_ack_callback( |
@@ -3212,7 +3228,7 @@ cy_as_usb_set_nak(cy_as_device_handle handle, | |||
3212 | return cy_as_usb_nak_stall_request(handle, ep, | 3228 | return cy_as_usb_nak_stall_request(handle, ep, |
3213 | CY_RQT_ENDPOINT_SET_NAK, cy_true, 0, cb, client); | 3229 | CY_RQT_ENDPOINT_SET_NAK, cy_true, 0, cb, client); |
3214 | } | 3230 | } |
3215 | 3231 | EXPORT_SYMBOL(cy_as_usb_set_nak); | |
3216 | 3232 | ||
3217 | cy_as_return_status_t | 3233 | cy_as_return_status_t |
3218 | cy_as_usb_clear_nak(cy_as_device_handle handle, | 3234 | cy_as_usb_clear_nak(cy_as_device_handle handle, |
@@ -3238,6 +3254,7 @@ cy_as_usb_clear_nak(cy_as_device_handle handle, | |||
3238 | return cy_as_usb_nak_stall_request(handle, ep, | 3254 | return cy_as_usb_nak_stall_request(handle, ep, |
3239 | CY_RQT_ENDPOINT_SET_NAK, cy_false, 0, cb, client); | 3255 | CY_RQT_ENDPOINT_SET_NAK, cy_false, 0, cb, client); |
3240 | } | 3256 | } |
3257 | EXPORT_SYMBOL(cy_as_usb_clear_nak); | ||
3241 | 3258 | ||
3242 | cy_as_return_status_t | 3259 | cy_as_return_status_t |
3243 | cy_as_usb_get_nak(cy_as_device_handle handle, | 3260 | cy_as_usb_get_nak(cy_as_device_handle handle, |
@@ -3265,7 +3282,7 @@ cy_as_usb_get_nak(cy_as_device_handle handle, | |||
3265 | CY_RQT_GET_ENDPOINT_NAK, CY_RESP_ENDPOINT_NAK, | 3282 | CY_RQT_GET_ENDPOINT_NAK, CY_RESP_ENDPOINT_NAK, |
3266 | nak_p, cb, client); | 3283 | nak_p, cb, client); |
3267 | } | 3284 | } |
3268 | 3285 | EXPORT_SYMBOL(cy_as_usb_get_nak); | |
3269 | 3286 | ||
3270 | cy_as_return_status_t | 3287 | cy_as_return_status_t |
3271 | cy_as_usb_set_stall(cy_as_device_handle handle, | 3288 | cy_as_usb_set_stall(cy_as_device_handle handle, |
@@ -3291,6 +3308,7 @@ cy_as_usb_set_stall(cy_as_device_handle handle, | |||
3291 | return cy_as_usb_nak_stall_request(handle, ep, | 3308 | return cy_as_usb_nak_stall_request(handle, ep, |
3292 | CY_RQT_STALL_ENDPOINT, cy_true, 0, cb, client); | 3309 | CY_RQT_STALL_ENDPOINT, cy_true, 0, cb, client); |
3293 | } | 3310 | } |
3311 | EXPORT_SYMBOL(cy_as_usb_set_stall); | ||
3294 | 3312 | ||
3295 | cy_as_return_status_t | 3313 | cy_as_return_status_t |
3296 | cy_as_usb_clear_stall(cy_as_device_handle handle, | 3314 | cy_as_usb_clear_stall(cy_as_device_handle handle, |
@@ -3316,6 +3334,7 @@ cy_as_usb_clear_stall(cy_as_device_handle handle, | |||
3316 | return cy_as_usb_nak_stall_request(handle, ep, | 3334 | return cy_as_usb_nak_stall_request(handle, ep, |
3317 | CY_RQT_STALL_ENDPOINT, cy_false, 0, cb, client); | 3335 | CY_RQT_STALL_ENDPOINT, cy_false, 0, cb, client); |
3318 | } | 3336 | } |
3337 | EXPORT_SYMBOL(cy_as_usb_clear_stall); | ||
3319 | 3338 | ||
3320 | cy_as_return_status_t | 3339 | cy_as_return_status_t |
3321 | cy_as_usb_get_stall(cy_as_device_handle handle, | 3340 | cy_as_usb_get_stall(cy_as_device_handle handle, |
@@ -3342,6 +3361,7 @@ cy_as_usb_get_stall(cy_as_device_handle handle, | |||
3342 | return cy_as_usb_get_nak_stall(handle, ep, | 3361 | return cy_as_usb_get_nak_stall(handle, ep, |
3343 | CY_RQT_GET_STALL, CY_RESP_ENDPOINT_STALL, stall_p, cb, client); | 3362 | CY_RQT_GET_STALL, CY_RESP_ENDPOINT_STALL, stall_p, cb, client); |
3344 | } | 3363 | } |
3364 | EXPORT_SYMBOL(cy_as_usb_get_stall); | ||
3345 | 3365 | ||
3346 | cy_as_return_status_t | 3366 | cy_as_return_status_t |
3347 | cy_as_usb_signal_remote_wakeup(cy_as_device_handle handle, | 3367 | cy_as_usb_signal_remote_wakeup(cy_as_device_handle handle, |
@@ -3405,6 +3425,7 @@ destroy: | |||
3405 | 3425 | ||
3406 | return ret; | 3426 | return ret; |
3407 | } | 3427 | } |
3428 | EXPORT_SYMBOL(cy_as_usb_signal_remote_wakeup); | ||
3408 | 3429 | ||
3409 | cy_as_return_status_t | 3430 | cy_as_return_status_t |
3410 | cy_as_usb_set_m_s_report_threshold(cy_as_device_handle handle, | 3431 | cy_as_usb_set_m_s_report_threshold(cy_as_device_handle handle, |
@@ -3482,6 +3503,7 @@ destroy: | |||
3482 | 3503 | ||
3483 | return ret; | 3504 | return ret; |
3484 | } | 3505 | } |
3506 | EXPORT_SYMBOL(cy_as_usb_set_m_s_report_threshold); | ||
3485 | 3507 | ||
3486 | cy_as_return_status_t | 3508 | cy_as_return_status_t |
3487 | cy_as_usb_select_m_s_partitions( | 3509 | cy_as_usb_select_m_s_partitions( |
@@ -3563,6 +3585,7 @@ destroy: | |||
3563 | 3585 | ||
3564 | return ret; | 3586 | return ret; |
3565 | } | 3587 | } |
3588 | EXPORT_SYMBOL(cy_as_usb_select_m_s_partitions); | ||
3566 | 3589 | ||
3567 | static void | 3590 | static void |
3568 | cy_as_usb_func_callback( | 3591 | cy_as_usb_func_callback( |
diff --git a/drivers/staging/westbridge/astoria/device/cyandevice_export.h b/drivers/staging/westbridge/astoria/device/cyandevice_export.h deleted file mode 100644 index acb4e07e850c..000000000000 --- a/drivers/staging/westbridge/astoria/device/cyandevice_export.h +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | /* | ||
2 | ## cyandevice_export.h - Linux Antioch device driver file | ||
3 | ## | ||
4 | ## =========================== | ||
5 | ## Copyright (C) 2010 Cypress Semiconductor | ||
6 | ## | ||
7 | ## This program is free software; you can redistribute it and/or | ||
8 | ## modify it under the terms of the GNU General Public License | ||
9 | ## as published by the Free Software Foundation; either version 2 | ||
10 | ## of the License, or (at your option) any later version. | ||
11 | ## | ||
12 | ## This program is distributed in the hope that it will be useful, | ||
13 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | ## GNU General Public License for more details. | ||
16 | ## | ||
17 | ## You should have received a copy of the GNU General Public License | ||
18 | ## along with this program; if not, write to the Free Software | ||
19 | ## Foundation, Inc., 51 Franklin Street | ||
20 | ## Fifth Floor, Boston, MA 02110-1301, USA. | ||
21 | ## =========================== | ||
22 | */ | ||
23 | |||
24 | /* | ||
25 | * Export Misc APIs that can be used from the other driver modules. | ||
26 | * The APIs to create a device handle and download firmware are not exported | ||
27 | * because they are expected to be used only by this kernel module. | ||
28 | */ | ||
29 | EXPORT_SYMBOL(cy_as_misc_get_firmware_version); | ||
30 | EXPORT_SYMBOL(cy_as_misc_read_m_c_u_register); | ||
31 | EXPORT_SYMBOL(cy_as_misc_reset); | ||
32 | EXPORT_SYMBOL(cy_as_misc_acquire_resource); | ||
33 | EXPORT_SYMBOL(cy_as_misc_release_resource); | ||
34 | EXPORT_SYMBOL(cy_as_misc_enter_standby); | ||
35 | EXPORT_SYMBOL(cy_as_misc_leave_standby); | ||
36 | EXPORT_SYMBOL(cy_as_misc_enter_suspend); | ||
37 | EXPORT_SYMBOL(cy_as_misc_leave_suspend); | ||
38 | EXPORT_SYMBOL(cy_as_misc_storage_changed); | ||
39 | EXPORT_SYMBOL(cy_as_misc_heart_beat_control); | ||
40 | EXPORT_SYMBOL(cy_as_misc_get_gpio_value); | ||
41 | EXPORT_SYMBOL(cy_as_misc_set_gpio_value); | ||
42 | EXPORT_SYMBOL(cy_as_misc_set_low_speed_sd_freq); | ||
43 | EXPORT_SYMBOL(cy_as_misc_set_high_speed_sd_freq); | ||
44 | |||
45 | /* | ||
46 | * Export the USB APIs that can be used by the dependent kernel modules. | ||
47 | */ | ||
48 | EXPORT_SYMBOL(cy_as_usb_set_end_point_config); | ||
49 | EXPORT_SYMBOL(cy_as_usb_read_data_async); | ||
50 | EXPORT_SYMBOL(cy_as_usb_write_data_async); | ||
51 | EXPORT_SYMBOL(cy_as_usb_cancel_async); | ||
52 | EXPORT_SYMBOL(cy_as_usb_set_stall); | ||
53 | EXPORT_SYMBOL(cy_as_usb_clear_stall); | ||
54 | EXPORT_SYMBOL(cy_as_usb_connect); | ||
55 | EXPORT_SYMBOL(cy_as_usb_disconnect); | ||
56 | EXPORT_SYMBOL(cy_as_usb_start); | ||
57 | EXPORT_SYMBOL(cy_as_usb_stop); | ||
58 | EXPORT_SYMBOL(cy_as_usb_set_enum_config); | ||
59 | EXPORT_SYMBOL(cy_as_usb_get_enum_config); | ||
60 | EXPORT_SYMBOL(cy_as_usb_set_physical_configuration); | ||
61 | EXPORT_SYMBOL(cy_as_usb_register_callback); | ||
62 | EXPORT_SYMBOL(cy_as_usb_commit_config); | ||
63 | EXPORT_SYMBOL(cy_as_usb_set_descriptor); | ||
64 | EXPORT_SYMBOL(cy_as_usb_clear_descriptors); | ||
65 | EXPORT_SYMBOL(cy_as_usb_get_descriptor); | ||
66 | EXPORT_SYMBOL(cy_as_usb_get_end_point_config); | ||
67 | EXPORT_SYMBOL(cy_as_usb_read_data); | ||
68 | EXPORT_SYMBOL(cy_as_usb_write_data); | ||
69 | EXPORT_SYMBOL(cy_as_usb_get_stall); | ||
70 | EXPORT_SYMBOL(cy_as_usb_set_nak); | ||
71 | EXPORT_SYMBOL(cy_as_usb_clear_nak); | ||
72 | EXPORT_SYMBOL(cy_as_usb_get_nak); | ||
73 | EXPORT_SYMBOL(cy_as_usb_signal_remote_wakeup); | ||
74 | EXPORT_SYMBOL(cy_as_usb_set_m_s_report_threshold); | ||
75 | EXPORT_SYMBOL(cy_as_usb_select_m_s_partitions); | ||
76 | |||
77 | /* | ||
78 | * Export all Storage APIs that can be used by dependent kernel modules. | ||
79 | */ | ||
80 | EXPORT_SYMBOL(cy_as_storage_start); | ||
81 | EXPORT_SYMBOL(cy_as_storage_stop); | ||
82 | EXPORT_SYMBOL(cy_as_storage_register_callback); | ||
83 | EXPORT_SYMBOL(cy_as_storage_query_bus); | ||
84 | EXPORT_SYMBOL(cy_as_storage_query_media); | ||
85 | EXPORT_SYMBOL(cy_as_storage_query_device); | ||
86 | EXPORT_SYMBOL(cy_as_storage_query_unit); | ||
87 | EXPORT_SYMBOL(cy_as_storage_device_control); | ||
88 | EXPORT_SYMBOL(cy_as_storage_claim); | ||
89 | EXPORT_SYMBOL(cy_as_storage_release); | ||
90 | EXPORT_SYMBOL(cy_as_storage_read); | ||
91 | EXPORT_SYMBOL(cy_as_storage_write); | ||
92 | EXPORT_SYMBOL(cy_as_storage_read_async); | ||
93 | EXPORT_SYMBOL(cy_as_storage_write_async); | ||
94 | EXPORT_SYMBOL(cy_as_storage_cancel_async); | ||
95 | EXPORT_SYMBOL(cy_as_storage_sd_register_read); | ||
96 | EXPORT_SYMBOL(cy_as_storage_create_p_partition); | ||
97 | EXPORT_SYMBOL(cy_as_storage_remove_p_partition); | ||
98 | EXPORT_SYMBOL(cy_as_storage_get_transfer_amount); | ||
99 | EXPORT_SYMBOL(cy_as_storage_erase); | ||
100 | |||
101 | EXPORT_SYMBOL(cy_as_sdio_query_card); | ||
102 | EXPORT_SYMBOL(cy_as_sdio_init_function); | ||
103 | EXPORT_SYMBOL(cy_as_sdio_set_blocksize); | ||
104 | EXPORT_SYMBOL(cy_as_sdio_direct_read); | ||
105 | EXPORT_SYMBOL(cy_as_sdio_direct_write); | ||
106 | EXPORT_SYMBOL(cy_as_sdio_extended_read); | ||
107 | EXPORT_SYMBOL(cy_as_sdio_extended_write); | ||
108 | |||
109 | EXPORT_SYMBOL(cy_as_hal_alloc); | ||
110 | EXPORT_SYMBOL(cy_as_hal_free); | ||
111 | EXPORT_SYMBOL(cy_as_hal_sleep); | ||
112 | EXPORT_SYMBOL(cy_as_hal_create_sleep_channel); | ||
113 | EXPORT_SYMBOL(cy_as_hal_destroy_sleep_channel); | ||
114 | EXPORT_SYMBOL(cy_as_hal_sleep_on); | ||
115 | EXPORT_SYMBOL(cy_as_hal_wake); | ||
116 | EXPORT_SYMBOL(cy_as_hal_mem_set); | ||
117 | |||
118 | EXPORT_SYMBOL(cy_as_mtp_storage_only_start); | ||
119 | EXPORT_SYMBOL(cy_as_mtp_storage_only_stop); | ||
120 | EXPORT_SYMBOL(cy_as_mtp_start); | ||
121 | EXPORT_SYMBOL(cy_as_mtp_init_send_object); | ||
122 | EXPORT_SYMBOL(cy_as_mtp_init_get_object); | ||
123 | EXPORT_SYMBOL(cy_as_mtp_cancel_send_object); | ||
124 | EXPORT_SYMBOL(cy_as_mtp_cancel_get_object); | ||
125 | |||
126 | #ifdef __CY_ASTORIA_SCM_KERNEL_HAL__ | ||
127 | /* Functions in the SCM kernel HAL implementation only. */ | ||
128 | EXPORT_SYMBOL(cy_as_hal_enable_scatter_list); | ||
129 | EXPORT_SYMBOL(cy_as_hal_disable_scatter_list); | ||
130 | #endif | ||
131 | |||
132 | /*[]*/ | ||
diff --git a/drivers/staging/westbridge/astoria/device/cyasdevice.c b/drivers/staging/westbridge/astoria/device/cyasdevice.c index 088973076517..5ca3d41a932d 100644 --- a/drivers/staging/westbridge/astoria/device/cyasdevice.c +++ b/drivers/staging/westbridge/astoria/device/cyasdevice.c | |||
@@ -40,9 +40,6 @@ | |||
40 | #include "../include/linux/westbridge/cyashal.h" | 40 | #include "../include/linux/westbridge/cyashal.h" |
41 | #include "../include/linux/westbridge/cyasregs.h" | 41 | #include "../include/linux/westbridge/cyasregs.h" |
42 | 42 | ||
43 | /* API exports include file */ | ||
44 | #include "cyandevice_export.h" | ||
45 | |||
46 | typedef struct cyasdevice { | 43 | typedef struct cyasdevice { |
47 | /* Handle to the Antioch device */ | 44 | /* Handle to the Antioch device */ |
48 | cy_as_device_handle dev_handle; | 45 | cy_as_device_handle dev_handle; |