Skip to content

Commit

Permalink
Staging: Westbridge: fix EXPORT_SYMBOL errors reported by checkpatch.pl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sutharsan Ramamoorthy authored and Greg Kroah-Hartman committed Jan 26, 2011
1 parent f5c28f2 commit af109f2
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 149 deletions.
20 changes: 17 additions & 3 deletions drivers/staging/westbridge/astoria/api/src/cyasmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,8 @@ cy_as_misc_get_firmware_version(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_get_firmware_version);

static cy_as_return_status_t
my_handle_response_read_m_c_u_register(cy_as_device *dev_p,
cy_as_ll_request_response *req_p,
Expand Down Expand Up @@ -1115,7 +1117,7 @@ cy_as_misc_read_m_c_u_register(cy_as_device_handle handle,

return ret;
}

EXPORT_SYMBOL(cy_as_misc_read_m_c_u_register);

cy_as_return_status_t
cy_as_misc_write_m_c_u_register(cy_as_device_handle handle,
Expand Down Expand Up @@ -1336,6 +1338,7 @@ cy_as_misc_reset(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_reset);

static cy_as_return_status_t
get_unallocated_resource(cy_as_device *dev_p, cy_as_resource_type resource)
Expand Down Expand Up @@ -1508,6 +1511,8 @@ cy_as_misc_acquire_resource(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_acquire_resource);

cy_as_return_status_t
cy_as_misc_release_resource(cy_as_device_handle handle,
cy_as_resource_type resource)
Expand Down Expand Up @@ -1560,6 +1565,7 @@ cy_as_misc_release_resource(cy_as_device_handle handle,

return CY_AS_ERROR_SUCCESS;
}
EXPORT_SYMBOL(cy_as_misc_release_resource);

cy_as_return_status_t
cy_as_misc_set_trace_level(cy_as_device_handle handle,
Expand Down Expand Up @@ -1718,6 +1724,7 @@ cy_as_misc_heart_beat_control(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_heart_beat_control);

static cy_as_return_status_t
my_set_sd_clock_freq(
Expand Down Expand Up @@ -1805,6 +1812,7 @@ cy_as_misc_set_low_speed_sd_freq(

return my_set_sd_clock_freq(dev_p, 0, (uint8_t)setting, cb, client);
}
EXPORT_SYMBOL(cy_as_misc_set_low_speed_sd_freq);

cy_as_return_status_t
cy_as_misc_set_high_speed_sd_freq(
Expand All @@ -1830,6 +1838,7 @@ cy_as_misc_set_high_speed_sd_freq(

return my_set_sd_clock_freq(dev_p, 1, (uint8_t)setting, cb, client);
}
EXPORT_SYMBOL(cy_as_misc_set_high_speed_sd_freq);

cy_as_return_status_t
cy_as_misc_get_gpio_value(cy_as_device_handle handle,
Expand Down Expand Up @@ -1921,7 +1930,7 @@ cy_as_misc_get_gpio_value(cy_as_device_handle handle,

return ret;
}

EXPORT_SYMBOL(cy_as_misc_get_gpio_value);

cy_as_return_status_t
cy_as_misc_set_gpio_value(cy_as_device_handle handle,
Expand Down Expand Up @@ -2020,6 +2029,7 @@ cy_as_misc_set_gpio_value(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_set_gpio_value);

static cy_as_return_status_t
my_enter_standby(cy_as_device *dev_p, cy_bool pin)
Expand Down Expand Up @@ -2213,6 +2223,7 @@ cy_as_misc_enter_standby(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_enter_standby);

cy_as_return_status_t
cy_as_misc_enter_standby_e_x_u(cy_as_device_handle handle,
Expand Down Expand Up @@ -2425,6 +2436,7 @@ cy_as_misc_leave_standby(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_misc_leave_standby);

cy_as_return_status_t
cy_as_misc_register_callback(
Expand Down Expand Up @@ -2526,7 +2538,7 @@ cy_as_misc_storage_changed(cy_as_device_handle handle,

return ret;
}

EXPORT_SYMBOL(cy_as_misc_storage_changed);

cy_as_return_status_t
cy_as_misc_enter_suspend(
Expand Down Expand Up @@ -2634,6 +2646,7 @@ cy_as_misc_enter_suspend(

return ret;
}
EXPORT_SYMBOL(cy_as_misc_enter_suspend);

cy_as_return_status_t
cy_as_misc_leave_suspend(
Expand Down Expand Up @@ -2704,6 +2717,7 @@ cy_as_misc_leave_suspend(

return ret;
}
EXPORT_SYMBOL(cy_as_misc_leave_suspend);

cy_as_return_status_t
cy_as_misc_reserve_l_n_a_boot_area(cy_as_device_handle handle,
Expand Down
8 changes: 8 additions & 0 deletions drivers/staging/westbridge/astoria/api/src/cyasmtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ cy_as_mtp_start(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_mtp_start);

static cy_as_return_status_t
my_handle_response_mtp_stop(cy_as_device *dev_p,
Expand Down Expand Up @@ -744,6 +745,7 @@ cy_as_mtp_init_send_object(cy_as_device_handle handle,
client, CY_RQT_INIT_SEND_OBJECT);

}
EXPORT_SYMBOL(cy_as_mtp_init_send_object);

cy_as_return_status_t
cy_as_mtp_init_get_object(cy_as_device_handle handle,
Expand All @@ -763,6 +765,7 @@ cy_as_mtp_init_get_object(cy_as_device_handle handle,
transaction_id, cb, client, CY_RQT_INIT_GET_OBJECT);

}
EXPORT_SYMBOL(cy_as_mtp_init_get_object);

static cy_as_return_status_t
my_handle_response_cancel_send_object(cy_as_device *dev_p,
Expand Down Expand Up @@ -850,6 +853,7 @@ cy_as_mtp_cancel_send_object(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_mtp_cancel_send_object);

static cy_as_return_status_t
my_handle_response_cancel_get_object(cy_as_device *dev_p,
Expand Down Expand Up @@ -937,6 +941,7 @@ cy_as_mtp_cancel_get_object(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_mtp_cancel_get_object);

cy_as_return_status_t
cy_as_mtp_send_block_table(cy_as_device_handle handle,
Expand Down Expand Up @@ -1058,6 +1063,7 @@ cy_as_mtp_storage_only_start(cy_as_device_handle handle)
dev_p->is_storage_only_mode = cy_true;
return CY_AS_ERROR_SUCCESS;
}
EXPORT_SYMBOL(cy_as_mtp_storage_only_start);

cy_as_return_status_t
cy_as_mtp_storage_only_stop(cy_as_device_handle handle,
Expand Down Expand Up @@ -1126,3 +1132,5 @@ cy_as_mtp_storage_only_stop(cy_as_device_handle handle,

return ret;
}
EXPORT_SYMBOL(cy_as_mtp_storage_only_stop);

Loading

0 comments on commit af109f2

Please sign in to comment.