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

Commit de728b7d authored by Dave Jiang's avatar Dave Jiang Committed by Dan Williams
Browse files

isci: Remove "screaming" data types



Converting the all CAPS data types to lower case.

Reported-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 2828dc0b
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
#include "sati_device.h"

/**
 * enum _SATI_TRANSLATOR_SEQUENCE_TYPE - This enumeration defines the possible
 * enum _sati_translator_sequence_type - This enumeration defines the possible
 *    sequence types for the translator.
 *
 *
@@ -172,7 +172,7 @@ enum sati_translator_sequence_type {
 *
 *
 */
typedef  struct SATI_MODE_SELECT_PROCESSING_STATE {
struct sati_mode_select_processing_state {
	u8 *mode_pages;
	u32 mode_page_offset;
	u32 mode_pages_size;
@@ -180,11 +180,10 @@ typedef struct SATI_MODE_SELECT_PROCESSING_STATE {
	u32 total_ata_command_sent;
	u32 ata_command_sent_for_cmp; /* cmp: current mode page */
	bool current_mode_page_processed;

} SATI_MODE_SELECT_PROCESSING_STATE_T;
};


enum SATI_REASSIGN_BLOCKS_ATA_COMMAND_STATUS {
enum sati_reassign_blocks_ata_command_status {
	SATI_REASSIGN_BLOCKS_READY_TO_SEND,
	SATI_REASSIGN_BLOCKS_COMMAND_FAIL,
	SATI_REASSIGN_BLOCKS_COMMAND_SUCCESS,
@@ -204,7 +203,7 @@ struct sati_reassign_blocks_processing_state {
	u32 size_of_data_processed;
	u32 ata_command_sent_for_current_lba;
	bool current_lba_processed;
	enum     SATI_REASSIGN_BLOCKS_ATA_COMMAND_STATUS ata_command_status;
	enum  sati_reassign_blocks_ata_command_status ata_command_status;

};

@@ -291,8 +290,9 @@ struct sati_translator_sequence {
		u32 translated_command;
		u32 move_sector_count;
		u32 scratch;
		struct sati_reassign_blocks_processing_state reassign_blocks_process_state;
		SATI_MODE_SELECT_PROCESSING_STATE_T process_state;
		struct sati_reassign_blocks_processing_state
			reassign_blocks_process_state;
		struct sati_mode_select_processing_state process_state;
		struct sati_atapi_data sati_atapi_data;
	} command_specific_data;

+20 −24
Original line number Diff line number Diff line
@@ -128,19 +128,16 @@ struct sci_base_port {

struct sci_base_phy;

typedef enum sci_status (*SCI_BASE_PORT_HANDLER_T)(
	struct sci_base_port *
	);
typedef enum sci_status (*sci_base_port_handler_t) (
	struct sci_base_port *);

typedef enum sci_status (*SCI_BASE_PORT_PHY_HANDLER_T)(
typedef enum sci_status (*sci_base_port_phy_handler_t) (
	struct sci_base_port *,
	struct sci_base_phy *
	);
	struct sci_base_phy *);

typedef enum sci_status (*SCI_BASE_PORT_RESET_HANDLER_T)(
typedef enum sci_status (*sci_base_port_reset_handler_t) (
	struct sci_base_port *,
	u32 timeout
	);
	u32 timeout);

/**
 * struct sci_base_port_state_handler - This structure contains all of the
@@ -152,40 +149,39 @@ typedef enum sci_status (*SCI_BASE_PORT_RESET_HANDLER_T)(
 */
struct sci_base_port_state_handler {
	/**
	 * The start_handler specifies the method invoked when a user attempts to
	 * start a port.
	 * The start_handler specifies the method invoked when a user
	 * attempts to start a port.
	 */
	SCI_BASE_PORT_HANDLER_T start_handler;
	sci_base_port_handler_t start_handler;

	/**
	 * The stop_handler specifies the method invoked when a user attempts to
	 * stop a port.
	 * The stop_handler specifies the method invoked when a user
	 * attempts to stop a port.
	 */
	SCI_BASE_PORT_HANDLER_T stop_handler;
	sci_base_port_handler_t stop_handler;

	/**
	 * The destruct_handler specifies the method invoked when attempting to
	 * destruct a port.
	 */
	SCI_BASE_PORT_HANDLER_T destruct_handler;
	sci_base_port_handler_t destruct_handler;

	/**
	 * The reset_handler specifies the method invoked when a user attempts to
	 * hard reset a port.
	 * The reset_handler specifies the method invoked when a user
	 * attempts to hard reset a port.
	 */
	SCI_BASE_PORT_RESET_HANDLER_T reset_handler;
	sci_base_port_reset_handler_t reset_handler;

	/**
	 * The add_phy_handler specifies the method invoked when a user attempts to
	 * add another phy into the port.
	 * The add_phy_handler specifies the method invoked when a user
	 * attempts to add another phy into the port.
	 */
	SCI_BASE_PORT_PHY_HANDLER_T add_phy_handler;
	sci_base_port_phy_handler_t add_phy_handler;

	/**
	 * The remove_phy_handler specifies the method invoked when a user
	 * attempts to remove a phy from the port.
	 */
	SCI_BASE_PORT_PHY_HANDLER_T remove_phy_handler;

	sci_base_port_phy_handler_t remove_phy_handler;
};
#endif /* _SCI_BASE_PORT_H_ */
+5 −5
Original line number Diff line number Diff line
@@ -129,7 +129,7 @@ struct sci_base_request {
	struct sci_base_state_machine state_machine;
};

typedef enum sci_status (*SCI_BASE_REQUEST_HANDLER_T)(
typedef enum sci_status (*sci_base_request_handler_t)(
	struct sci_base_request *this_request
	);

@@ -146,25 +146,25 @@ struct sci_base_request_state_handler {
	 * The start_handler specifies the method invoked when a user attempts to
	 * start a request.
	 */
	SCI_BASE_REQUEST_HANDLER_T start_handler;
	sci_base_request_handler_t start_handler;

	/**
	 * The abort_handler specifies the method invoked when a user attempts to
	 * abort a request.
	 */
	SCI_BASE_REQUEST_HANDLER_T abort_handler;
	sci_base_request_handler_t abort_handler;

	/**
	 * The complete_handler specifies the method invoked when a user attempts to
	 * complete a request.
	 */
	SCI_BASE_REQUEST_HANDLER_T complete_handler;
	sci_base_request_handler_t complete_handler;

	/**
	 * The destruct_handler specifies the method invoked when a user attempts to
	 * destruct a request.
	 */
	SCI_BASE_REQUEST_HANDLER_T destruct_handler;
	sci_base_request_handler_t destruct_handler;

};

+4 −4
Original line number Diff line number Diff line
@@ -58,11 +58,11 @@

#include "sci_object.h"

typedef void (*SCI_BASE_STATE_HANDLER_T)(
typedef void (*sci_base_state_handler_t)(
	void
	);

typedef void (*SCI_STATE_TRANSITION_T)(
typedef void (*sci_state_transition_t)(
	struct sci_base_object *base_object
	);

@@ -77,13 +77,13 @@ struct sci_base_state {
	 * This field is a function pointer that defines the method to be
	 * invoked when the state is entered.
	 */
	SCI_STATE_TRANSITION_T enter_state;
	sci_state_transition_t enter_state;

	/**
	 * This field is a function pointer that defines the method to be
	 * invoked when the state is exited.
	 */
	SCI_STATE_TRANSITION_T exit_state;
	sci_state_transition_t exit_state;

};

+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@
static void sci_state_machine_exit_state(struct sci_base_state_machine *sm)
{
	u32 state = sm->current_state_id;
	SCI_STATE_TRANSITION_T exit = sm->state_table[state].exit_state;
	sci_state_transition_t exit = sm->state_table[state].exit_state;

	if (exit)
		exit(sm->state_machine_owner);
@@ -74,7 +74,7 @@ static void sci_state_machine_exit_state(struct sci_base_state_machine *sm)
static void sci_state_machine_enter_state(struct sci_base_state_machine *sm)
{
	u32 state = sm->current_state_id;
	SCI_STATE_TRANSITION_T enter = sm->state_table[state].enter_state;
	sci_state_transition_t enter = sm->state_table[state].enter_state;

	if (enter)
		enter(sm->state_machine_owner);
Loading