Merge "Modify the mmc data structure."
This commit is contained in:
commit
9d8576d701
|
@ -322,9 +322,9 @@ static enum scsi_result check_sg_io_hdr(const sg_io_hdr_t* io_hdrp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int send_mmc_rpmb_req(int mmc_fd, const struct storage_rpmb_send_req* req) {
|
static int send_mmc_rpmb_req(int mmc_fd, const struct storage_rpmb_send_req* req) {
|
||||||
struct {
|
union {
|
||||||
struct mmc_ioc_multi_cmd multi;
|
struct mmc_ioc_multi_cmd multi;
|
||||||
struct mmc_ioc_cmd cmd_buf[3];
|
uint8_t raw[sizeof(struct mmc_ioc_multi_cmd) + sizeof(struct mmc_ioc_cmd) * 3];
|
||||||
} mmc = {};
|
} mmc = {};
|
||||||
struct mmc_ioc_cmd* cmd = mmc.multi.cmds;
|
struct mmc_ioc_cmd* cmd = mmc.multi.cmds;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
Loading…
Reference in New Issue