Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4476d54 authored by Severin Gsponer's avatar Severin Gsponer Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: Change comment style to C89 in vendorspecificextn.c



Changed the comment style to C89 in vendorspecificextn.c. Found with checkpatch.pl

Signed-off-by: default avatarSeverin Gsponer <svgsponer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 66f16576
Loading
Loading
Loading
Loading
+97 −101
Original line number Original line Diff line number Diff line
#include "headers.h"
#include "headers.h"
//-----------------------------------------------------------------------------
/*
// Procedure:	vendorextnGetSectionInfo
 * Procedure:	vendorextnGetSectionInfo
//
 *
// Description: Finds the type of NVM used.
 * Description: Finds the type of NVM used.
//
 *
// Arguments:
 * Arguments:
//		Adapter    - ptr to Adapter object instance
 *		Adapter    - ptr to Adapter object instance
//		pNVMType   - ptr to NVM type.
 *		pNVMType   - ptr to NVM type.
// Returns:
 * Returns:
//		STATUS_SUCCESS/STATUS_FAILURE
 *		STATUS_SUCCESS/STATUS_FAILURE
//
 *
//-----------------------------------------------------------------------------
 */
INT vendorextnGetSectionInfo(PVOID  pContext, struct bcm_flash2x_vendor_info *pVendorInfo)
INT vendorextnGetSectionInfo(PVOID  pContext, struct bcm_flash2x_vendor_info *pVendorInfo)
{
{
	return STATUS_FAILURE;
	return STATUS_FAILURE;
}
}


//-----------------------------------------------------------------------------
/*
// Procedure:   vendorextnInit
 * Procedure:   vendorextnInit
//
 *
// Description: Initializing the vendor extension NVM interface
 * Description: Initializing the vendor extension NVM interface
//
 *
// Arguments:
 * Arguments:
//              Adapter   - Pointer to MINI Adapter Structure.
 *              Adapter   - Pointer to MINI Adapter Structure

 * Returns:
// Returns:
 *             STATUS_SUCCESS/STATUS_FAILURE
//              STATUS_SUCCESS/STATUS_FAILURE
 *
//
 *
//-----------------------------------------------------------------------------
 */
INT vendorextnInit(struct bcm_mini_adapter *Adapter)
INT vendorextnInit(struct bcm_mini_adapter *Adapter)
{
{
	return STATUS_SUCCESS;
	return STATUS_SUCCESS;
}
}


//-----------------------------------------------------------------------------
/*
// Procedure:   vendorextnExit
 * Procedure:   vendorextnExit
//
 *
// Description: Free the resource associated with vendor extension NVM interface
 * Description: Free the resource associated with vendor extension NVM interface
//
 *
// Arguments:
 * Arguments:
//              Adapter   - Pointer to MINI Adapter Structure.
 *

 * Returns:
// Returns:
 *              STATUS_SUCCESS/STATUS_FAILURE
//              STATUS_SUCCESS/STATUS_FAILURE
 *
//
 *
//-----------------------------------------------------------------------------
 */
INT vendorextnExit(struct bcm_mini_adapter *Adapter)
INT vendorextnExit(struct bcm_mini_adapter *Adapter)
{
{
	return STATUS_SUCCESS;
	return STATUS_SUCCESS;
}
}


//------------------------------------------------------------------------
/*
// Procedure:	vendorextnIoctl
 * Procedure:	vendorextnIoctl
//
 *
// Description: 	execute the vendor extension specific ioctl
 * Description: execute the vendor extension specific ioctl
//
 *
//Arguments:
 * Arguments:
//		Adapter -Beceem private Adapter Structure
 *		Adapter -Beceem private Adapter Structure
//		cmd 	-vendor extension specific Ioctl commad
 *		cmd	-vendor extension specific Ioctl commad
//		arg		-input parameter sent by vendor
 *		arg	-input parameter sent by vendor
//
 *
// Returns:
 * Returns:
//		CONTINUE_COMMON_PATH in case it is not meant to be processed by vendor ioctls
 *		CONTINUE_COMMON_PATH in case it is not meant to be processed by vendor ioctls
//		STATUS_SUCCESS/STATUS_FAILURE as per the IOCTL return value
 *		STATUS_SUCCESS/STATUS_FAILURE as per the IOCTL return value
//
 */
//--------------------------------------------------------------------------

INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg)
INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg)
{
{
	return CONTINUE_COMMON_PATH;
	return CONTINUE_COMMON_PATH;
@@ -72,22 +72,21 @@ INT vendorextnIoctl(struct bcm_mini_adapter *Adapter, UINT cmd, ULONG arg)






//------------------------------------------------------------------
/*
// Procedure:	vendorextnReadSection
 * Procedure:	vendorextnReadSection
//
 *
// Description: Reads from a section of NVM
 * Description: Reads from a section of NVM
//
 *
// Arguments:
 * Arguments:
//		pContext - ptr to Adapter object instance
 *		pContext - ptr to Adapter object instance
//		pBuffer - Read the data from Vendor Area to this buffer
 *		pBuffer - Read the data from Vendor Area to this buffer
//		SectionVal   - Value of type of Section
 *		SectionVal   - Value of type of Section
//		Offset - Read from the Offset of the Vendor Section.
 *		Offset - Read from the Offset of the Vendor Section.
//		numOfBytes - Read numOfBytes from the Vendor section to Buffer
 *		numOfBytes - Read numOfBytes from the Vendor section to Buffer
//
 *
// Returns:
 * Returns:
//		STATUS_SUCCESS/STATUS_FAILURE
 *		STATUS_SUCCESS/STATUS_FAILURE
//
 */
//------------------------------------------------------------------


INT vendorextnReadSection(PVOID  pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
INT vendorextnReadSection(PVOID  pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
			UINT offset, UINT numOfBytes)
			UINT offset, UINT numOfBytes)
@@ -97,23 +96,22 @@ INT vendorextnReadSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_sect






//------------------------------------------------------------------
/*
// Procedure:	vendorextnWriteSection
 * Procedure:	vendorextnWriteSection
//
 *
// Description: Write to a Section of NVM
 * Description: Write to a Section of NVM
//
 *
// Arguments:
 * Arguments:
//		pContext - ptr to Adapter object instance
 *		pContext - ptr to Adapter object instance
//		pBuffer - Write the data provided in the buffer
 *		pBuffer - Write the data provided in the buffer
//		SectionVal   - Value of type of Section
 *		SectionVal   - Value of type of Section
//		Offset - Writes to the Offset of the Vendor Section.
 *		Offset - Writes to the Offset of the Vendor Section.
//		numOfBytes - Write num Bytes after reading from pBuffer.
 *		numOfBytes - Write num Bytes after reading from pBuffer.
//		bVerify - the Buffer Written should be verified.
 *		bVerify - the Buffer Written should be verified.
//
 *
// Returns:
 * Returns:
//		STATUS_SUCCESS/STATUS_FAILURE
 *		STATUS_SUCCESS/STATUS_FAILURE
//
 */
//------------------------------------------------------------------
INT vendorextnWriteSection(PVOID  pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
INT vendorextnWriteSection(PVOID  pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
			UINT offset, UINT numOfBytes, BOOLEAN bVerify)
			UINT offset, UINT numOfBytes, BOOLEAN bVerify)
{
{
@@ -122,25 +120,23 @@ INT vendorextnWriteSection(PVOID pContext, PUCHAR pBuffer, enum bcm_flash2x_sec






//------------------------------------------------------------------
/*
// Procedure:	vendorextnWriteSectionWithoutErase
 * Procedure:	vendorextnWriteSectionWithoutErase
//
 *
// Description: Write to a Section of NVM without erasing the sector
 * Description: Write to a Section of NVM without erasing the sector
//
 *
// Arguments:
 * Arguments:
//		pContext - ptr to Adapter object instance
 *		pContext - ptr to Adapter object instance
//		pBuffer - Write the data provided in the buffer
 *		pBuffer - Write the data provided in the buffer
//		SectionVal   - Value of type of Section
 *		SectionVal   - Value of type of Section
//		Offset - Writes to the Offset of the Vendor Section.
 *		Offset - Writes to the Offset of the Vendor Section.
//		numOfBytes - Write num Bytes after reading from pBuffer.
 *		numOfBytes - Write num Bytes after reading from pBuffer.
//
 *
// Returns:
 * Returns:
//		STATUS_SUCCESS/STATUS_FAILURE
 *		STATUS_SUCCESS/STATUS_FAILURE
//
 */
//------------------------------------------------------------------
INT vendorextnWriteSectionWithoutErase(PVOID  pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
INT vendorextnWriteSectionWithoutErase(PVOID  pContext, PUCHAR pBuffer, enum bcm_flash2x_section_val SectionVal,
			UINT offset, UINT numOfBytes)
			UINT offset, UINT numOfBytes)
{
{
	return STATUS_FAILURE;
	return STATUS_FAILURE;
}
}