Просмотр исходного кода

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 лет назад
Родитель
Сommit
f504f7e2aa
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      include/soc/soundwire.h

+ 2 - 2
include/soc/soundwire.h

@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
 /* 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
 #ifndef _LINUX_SOUNDWIRE_H
@@ -200,7 +200,7 @@ struct swr_device {
 	struct list_head dev_list;
 	struct list_head dev_list;
 	u8               dev_num;
 	u8               dev_num;
 	struct device    dev;
 	struct device    dev;
-	unsigned long    addr;
+	u64 addr;
 	u8 group_id;
 	u8 group_id;
 	struct irq_domain *slave_irq;
 	struct irq_domain *slave_irq;
 	bool slave_irq_pending;
 	bool slave_irq_pending;