]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: freescale: emc2305: Pass chip_addr to set_fan_speed
authorWasim Khan <wasim.khan@nxp.com>
Thu, 27 Aug 2020 13:43:34 +0000 (19:13 +0530)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 24 Sep 2020 15:27:32 +0000 (20:57 +0530)
commitc63edbc750f9416bb542b24c9b856cce4f2a33e1
treeb3242e08c1208345678f118d336f2da0dd10a3c5
parentada19fd2d2d45bf66f71cb1610a293d30058e7b6
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>
board/freescale/common/emc2305.c
board/freescale/common/emc2305.h
board/freescale/lx2160a/lx2160a.c