mirror of
https://github.com/torvalds/linux.git
synced 2026-05-04 22:43:04 -04:00
drm/amd/display: Remove redundant i2c structs
[Why] The i2c code contains two structs that contain the same information as i2c_payload [How] Replace references to those structs with references to i2c_payload dce_i2c_transaction_request->status was written to but never read, so all references to it are removed Signed-off-by: David Francis <David.Francis@amd.com> Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
46659a83e4
commit
d377ae4e37
@@ -30,39 +30,6 @@
|
||||
#include "dce_i2c_hw.h"
|
||||
#include "dce_i2c_sw.h"
|
||||
|
||||
enum dce_i2c_transaction_status {
|
||||
DCE_I2C_TRANSACTION_STATUS_UNKNOWN = (-1L),
|
||||
DCE_I2C_TRANSACTION_STATUS_SUCCEEDED,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_CHANNEL_BUSY,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_TIMEOUT,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_PROTOCOL_ERROR,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_NACK,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_INCOMPLETE,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_OPERATION,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_INVALID_OPERATION,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_BUFFER_OVERFLOW,
|
||||
DCE_I2C_TRANSACTION_STATUS_FAILED_HPD_DISCON
|
||||
};
|
||||
|
||||
enum dce_i2c_transaction_operation {
|
||||
DCE_I2C_TRANSACTION_READ,
|
||||
DCE_I2C_TRANSACTION_WRITE
|
||||
};
|
||||
|
||||
struct dce_i2c_transaction_payload {
|
||||
enum dce_i2c_transaction_address_space address_space;
|
||||
uint32_t address;
|
||||
uint32_t length;
|
||||
uint8_t *data;
|
||||
};
|
||||
|
||||
struct dce_i2c_transaction_request {
|
||||
enum dce_i2c_transaction_operation operation;
|
||||
struct dce_i2c_transaction_payload payload;
|
||||
enum dce_i2c_transaction_status status;
|
||||
};
|
||||
|
||||
|
||||
bool dce_i2c_submit_command(
|
||||
struct resource_pool *pool,
|
||||
struct ddc *ddc,
|
||||
|
||||
Reference in New Issue
Block a user