Skip to content

Commit 356d5a3

Browse files
eilnjannau
authored andcommitted
media: apple: isp: Don't use define for bootargs size
Signed-off-by: Eileen Yoon <eyn@gmx.com>
1 parent b36441b commit 356d5a3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • drivers/media/platform/apple/isp

drivers/media/platform/apple/isp/isp-fw.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#define ISP_FIRMWARE_MDELAY 1
1414
#define ISP_FIRMWARE_MAX_TRIES 1000
1515

16-
#define ISP_FIRMWARE_BOOTARGS_SIZE 0x180
1716
#define ISP_FIRMWARE_IPC_SIZE 0x1c000
1817
#define ISP_FIRMWARE_DATA_SIZE 0x28000
1918

@@ -57,8 +56,7 @@ struct isp_firmware_bootargs {
5756
u32 pad_c0[47];
5857
u32 unk9;
5958
} __packed;
60-
static_assert(sizeof(struct isp_firmware_bootargs) ==
61-
ISP_FIRMWARE_BOOTARGS_SIZE);
59+
static_assert(sizeof(struct isp_firmware_bootargs) == 0x180);
6260

6361
struct isp_chan_desc {
6462
char name[64];
@@ -274,7 +272,7 @@ static int isp_firmware_boot_stage2(struct apple_isp *isp)
274272
args.unk5 = 0x40;
275273
//args.pad_7c[3] = 0x3b54000;
276274
args.unk7 = 0x1;
277-
args.unk_iova1 = args_iova + ISP_FIRMWARE_BOOTARGS_SIZE - 0xc;
275+
args.unk_iova1 = args_iova + sizeof(args) - 0xc;
278276
args.unk9 = 0x3;
279277
isp_iowrite(isp, args_iova, &args, sizeof(args));
280278

0 commit comments

Comments
 (0)