diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/gpu/drm/ast/ast_dp501.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/gpu/drm/ast/ast_dp501.c')
| -rw-r--r-- | drivers/gpu/drm/ast/ast_dp501.c | 40 | 
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/gpu/drm/ast/ast_dp501.c b/drivers/gpu/drm/ast/ast_dp501.c index 4f75a9efb610..1bc35a992369 100644 --- a/drivers/gpu/drm/ast/ast_dp501.c +++ b/drivers/gpu/drm/ast/ast_dp501.c @@ -10,7 +10,7 @@ MODULE_FIRMWARE("ast_dp501_fw.bin");  static void ast_release_firmware(void *data)  { -	struct ast_private *ast = data; +	struct ast_device *ast = data;  	release_firmware(ast->dp501_fw);  	ast->dp501_fw = NULL; @@ -18,7 +18,7 @@ static void ast_release_firmware(void *data)  static int ast_load_dp501_microcode(struct drm_device *dev)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	int ret;  	ret = request_firmware(&ast->dp501_fw, "ast_dp501_fw.bin", dev->dev); @@ -28,7 +28,7 @@ static int ast_load_dp501_microcode(struct drm_device *dev)  	return devm_add_action_or_reset(dev->dev, ast_release_firmware, ast);  } -static void send_ack(struct ast_private *ast) +static void send_ack(struct ast_device *ast)  {  	u8 sendack;  	sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); @@ -36,7 +36,7 @@ static void send_ack(struct ast_private *ast)  	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack);  } -static void send_nack(struct ast_private *ast) +static void send_nack(struct ast_device *ast)  {  	u8 sendack;  	sendack = ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0xff); @@ -44,7 +44,7 @@ static void send_nack(struct ast_private *ast)  	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, 0x00, sendack);  } -static bool wait_ack(struct ast_private *ast) +static bool wait_ack(struct ast_device *ast)  {  	u8 waitack;  	u32 retry = 0; @@ -60,7 +60,7 @@ static bool wait_ack(struct ast_private *ast)  		return false;  } -static bool wait_nack(struct ast_private *ast) +static bool wait_nack(struct ast_device *ast)  {  	u8 waitack;  	u32 retry = 0; @@ -76,18 +76,18 @@ static bool wait_nack(struct ast_private *ast)  		return false;  } -static void set_cmd_trigger(struct ast_private *ast) +static void set_cmd_trigger(struct ast_device *ast)  {  	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, ~0x40, 0x40);  } -static void clear_cmd_trigger(struct ast_private *ast) +static void clear_cmd_trigger(struct ast_device *ast)  {  	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9b, ~0x40, 0x00);  }  #if 0 -static bool wait_fw_ready(struct ast_private *ast) +static bool wait_fw_ready(struct ast_device *ast)  {  	u8 waitready;  	u32 retry = 0; @@ -106,7 +106,7 @@ static bool wait_fw_ready(struct ast_private *ast)  static bool ast_write_cmd(struct drm_device *dev, u8 data)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	int retry = 0;  	if (wait_nack(ast)) {  		send_nack(ast); @@ -128,7 +128,7 @@ static bool ast_write_cmd(struct drm_device *dev, u8 data)  static bool ast_write_data(struct drm_device *dev, u8 data)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	if (wait_nack(ast)) {  		send_nack(ast); @@ -146,7 +146,7 @@ static bool ast_write_data(struct drm_device *dev, u8 data)  #if 0  static bool ast_read_data(struct drm_device *dev, u8 *data)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u8 tmp;  	*data = 0; @@ -163,7 +163,7 @@ static bool ast_read_data(struct drm_device *dev, u8 *data)  	return true;  } -static void clear_cmd(struct ast_private *ast) +static void clear_cmd(struct ast_device *ast)  {  	send_nack(ast);  	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0x9a, 0x00, 0x00); @@ -178,14 +178,14 @@ void ast_set_dp501_video_output(struct drm_device *dev, u8 mode)  	msleep(10);  } -static u32 get_fw_base(struct ast_private *ast) +static u32 get_fw_base(struct ast_device *ast)  {  	return ast_mindwm(ast, 0x1e6e2104) & 0x7fffffff;  }  bool ast_backup_fw(struct drm_device *dev, u8 *addr, u32 size)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u32 i, data;  	u32 boot_address; @@ -204,7 +204,7 @@ bool ast_backup_fw(struct drm_device *dev, u8 *addr, u32 size)  static bool ast_launch_m68k(struct drm_device *dev)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u32 i, data, len = 0;  	u32 boot_address;  	u8 *fw_addr = NULL; @@ -274,7 +274,7 @@ static bool ast_launch_m68k(struct drm_device *dev)  bool ast_dp501_read_edid(struct drm_device *dev, u8 *ediddata)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u32 i, boot_address, offset, data;  	u32 *pEDIDidx; @@ -334,7 +334,7 @@ bool ast_dp501_read_edid(struct drm_device *dev, u8 *ediddata)  static bool ast_init_dvo(struct drm_device *dev)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u8 jreg;  	u32 data;  	ast_write32(ast, 0xf004, 0x1e6e0000); @@ -407,7 +407,7 @@ static bool ast_init_dvo(struct drm_device *dev)  static void ast_init_analog(struct drm_device *dev)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u32 data;  	/* @@ -434,7 +434,7 @@ static void ast_init_analog(struct drm_device *dev)  void ast_init_3rdtx(struct drm_device *dev)  { -	struct ast_private *ast = to_ast_private(dev); +	struct ast_device *ast = to_ast_device(dev);  	u8 jreg;  	if (ast->chip == AST2300 || ast->chip == AST2400) {  |