summaryrefslogtreecommitdiff
path: root/board/freescale/common/emc2305.h
diff options
context:
space:
mode:
authorWasim Khan <wasim.khan@nxp.com>2020-08-27 16:43:34 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-09-24 18:27:32 +0300
commitc63edbc750f9416bb542b24c9b856cce4f2a33e1 (patch)
treeb3242e08c1208345678f118d336f2da0dd10a3c5 /board/freescale/common/emc2305.h
parentada19fd2d2d45bf66f71cb1610a293d30058e7b6 (diff)
downloadu-boot-c63edbc750f9416bb542b24c9b856cce4f2a33e1.tar.xz
board: freescale: emc2305: Pass chip_addr to set_fan_speed
emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to emc2305_init() and set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan <wasim.khan@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/freescale/common/emc2305.h')
-rw-r--r--board/freescale/common/emc2305.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/board/freescale/common/emc2305.h b/board/freescale/common/emc2305.h
index eddf537138..24c5410d12 100644
--- a/board/freescale/common/emc2305.h
+++ b/board/freescale/common/emc2305.h
@@ -1,8 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
- * Copyright 2018 NXP
+ * Copyright 2018-2020 NXP
*
- * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __EMC2305_H_
@@ -17,7 +16,7 @@
#define NUM_OF_FANS 5
-void emc2305_init(void);
-void set_fan_speed(u8 data);
+void emc2305_init(int chip_addr);
+void set_fan_speed(u8 data, int chip_addr);
#endif /* __EMC2305_H_ */