提交 ad55f6c8 编写于 作者: M Mauro Carvalho Chehab

[media] drx-j: prepend function names with drx_ at drx_driver.c

In order to prepare to get rid of drx_driver.c, prepend all functions
there with drx_.
Acked-by: NDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 1e76a999
......@@ -46,7 +46,7 @@ INCLUDE FILES
*/
/*
/* MICROCODE RELATED DEFINES
* MICROCODE RELATED DEFINES
*/
/* Magic word for checking correct Endianess of microcode data */
......@@ -108,13 +108,13 @@ FUNCTIONS
*/
/**
* u_code_compute_crc - Compute CRC of block of microcode data.
* drx_u_code_compute_crc - Compute CRC of block of microcode data.
* @block_data: Pointer to microcode data.
* @nr_words: Size of microcode block (number of 16 bits words).
*
* returns The computed CRC residue.
*/
static u16 u_code_compute_crc(u8 *block_data, u16 nr_words)
static u16 drx_u_code_compute_crc(u8 *block_data, u16 nr_words)
{
u16 i = 0;
u16 j = 0;
......@@ -136,13 +136,13 @@ static u16 u_code_compute_crc(u8 *block_data, u16 nr_words)
}
/**
* check_firmware - checks if the loaded firmware is valid
* drx_check_firmware - checks if the loaded firmware is valid
*
* @demod: demod structure
* @mc_data: pointer to the start of the firmware
* @size: firmware size
*/
static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
static int drx_check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
unsigned size)
{
struct drxu_code_block_hdr block_hdr;
......@@ -222,7 +222,7 @@ static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
}
/**
* ctrl_u_code - Handle microcode upload or verify.
* drx_ctrl_u_code - Handle microcode upload or verify.
* @dev_addr: Address of device.
* @mc_info: Pointer to information about microcode data.
* @action: Either UCODE_UPLOAD or UCODE_VERIFY
......@@ -240,7 +240,7 @@ static int check_firmware(struct drx_demod_instance *demod, u8 *mc_data,
* - Invalid arguments.
* - Provided image is corrupt
*/
static int ctrl_u_code(struct drx_demod_instance *demod,
static int drx_ctrl_u_code(struct drx_demod_instance *demod,
struct drxu_code_info *mc_info,
enum drxu_code_action action)
{
......@@ -295,7 +295,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
}
if (action == UCODE_UPLOAD) {
rc = check_firmware(demod, (u8 *)mc_data_init, size);
rc = drx_check_firmware(demod, (u8 *)mc_data_init, size);
if (rc)
goto release;
......@@ -337,7 +337,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
*/
if ((block_hdr.size > 0x7FFF) ||
(((block_hdr.flags & DRX_UCODE_CRC_FLAG) != 0) &&
(block_hdr.CRC != u_code_compute_crc(mc_data, block_hdr.size)))
(block_hdr.CRC != drx_u_code_compute_crc(mc_data, block_hdr.size)))
) {
/* Wrong data ! */
rc = -EINVAL;
......@@ -424,7 +424,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
/*============================================================================*/
/**
* ctrl_version - Build list of version information.
* drx_ctrl_version - Build list of version information.
* @demod: A pointer to a demodulator instance.
* @version_list: Pointer to linked list of versions.
*
......@@ -432,7 +432,7 @@ static int ctrl_u_code(struct drx_demod_instance *demod,
* 0: Version information stored in version_list
* -EINVAL: Invalid arguments.
*/
static int ctrl_version(struct drx_demod_instance *demod,
static int drx_ctrl_version(struct drx_demod_instance *demod,
struct drx_version_list **version_list)
{
static char drx_driver_core_module_name[] = "Core driver";
......@@ -607,7 +607,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
/*======================================================================*/
case DRX_CTRL_VERSION:
return ctrl_version(demod, (struct drx_version_list **)ctrl_data);
return drx_ctrl_version(demod, (struct drx_version_list **)ctrl_data);
break;
/*======================================================================*/
......@@ -624,7 +624,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
switch (ctrl) {
/*===================================================================*/
case DRX_CTRL_LOAD_UCODE:
return ctrl_u_code(demod,
return drx_ctrl_u_code(demod,
(struct drxu_code_info *)ctrl_data,
UCODE_UPLOAD);
break;
......@@ -632,7 +632,7 @@ int drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
/*===================================================================*/
case DRX_CTRL_VERIFY_UCODE:
{
return ctrl_u_code(demod,
return drx_ctrl_u_code(demod,
(struct drxu_code_info *)ctrl_data,
UCODE_VERIFY);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册