Skip to content

Commit b4da37d

Browse files
jhnikulaalexandrebelloni
authored andcommitted
i3c: master: Fix build error
Fix build error caused by commit 2aac0bf ("i3c: Add fallback method for GETMXDS CCC") which incorrectly access the "struct i3c_ccc_cmd_dest dest" as pointer. drivers/i3c/master.c: In function ‘i3c_master_getmxds_locked’: drivers/i3c/master.c:1140:21: error: invalid type argument of ‘->’ (have ‘struct i3c_ccc_cmd_dest’) 1140 | dest->payload.len -= 3; | ^~ Fixes: 2aac0bf ("i3c: Add fallback method for GETMXDS CCC") Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20231117110924.634280-1-jarkko.nikula@linux.intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 2aac0bf commit b4da37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i3c/master.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ static int i3c_master_getmxds_locked(struct i3c_master_controller *master,
11351135
* Retry when the device does not support max read turnaround
11361136
* while expecting shorter length from this CCC command.
11371137
*/
1138-
dest->payload.len -= 3;
1138+
dest.payload.len -= 3;
11391139
ret = i3c_master_send_ccc_cmd_locked(master, &cmd);
11401140
if (ret)
11411141
goto out;

0 commit comments

Comments
 (0)