Converting the all CAPS data types to lower case.
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
#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.
*
*
*
*
*/
-typedef struct SATI_MODE_SELECT_PROCESSING_STATE {
+struct sati_mode_select_processing_state {
u8 *mode_pages;
u32 mode_page_offset;
u32 mode_pages_size;
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,
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;
};
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;
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
*/
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_ */
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
);
* 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;
};