Browse Source

soc: soundwire: Fix type of swr addr to support 32bit arch

for 32bit arch based builds, soundwire logical address
fails when compare with dtsi value (64bit). Update addr
type of soundwire slave addr to u64.

Change-Id: Ifda388ca66350a2bc898484cddecbbcab4d3ece4
Signed-off-by: Laxminath Kasam <[email protected]>
Laxminath Kasam 5 năm trước cách đây
mục cha
commit
f504f7e2aa
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      include/soc/soundwire.h

+ 2 - 2
include/soc/soundwire.h

@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /*
- * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
  */
 
 #ifndef _LINUX_SOUNDWIRE_H
@@ -200,7 +200,7 @@ struct swr_device {
 	struct list_head dev_list;
 	u8               dev_num;
 	struct device    dev;
-	unsigned long    addr;
+	u64 addr;
 	u8 group_id;
 	struct irq_domain *slave_irq;
 	bool slave_irq_pending;