power: pmic.h: Drop include <spi.h>
PATCH 1/1 power: pmic.h: Drop include <spi.h>
include/power/pmic.h never used any generic spi code from include/spi.h, but this has been added in below commit. "dm: pmic: add implementation of driver model pmic uclass" (sha1: 4d9057e82be11a862db411c4867e859fe0d4ca2a)
Adding functionalities in include/spi.h will trigger a build issue as this been added used in include/power/pmic.h
Build issue on trats2 with adding BIT macro on spi.h:
----------------------------------------------------
CC lib/asm-offsets.s
In file included from include/power/pmic.h:15:0,
from include/power/max77686_pmic.h:11,
from include/configs/trats2.h:212,
from include/config.h:5,
from include/common.h:18,
from lib/asm-offsets.c:15:include/spi.h: In function 'spi_w8r8':include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration]
--- include/power/pmic.h | 1 - 1 file changed, 1 deletion(-)
include/power/pmic.h +0 -1
@@ -12,7 +12,6 @@#define __CORE_PMIC_H_#include <i2c.h> -#include <spi.h> #include <linux/list.h> #include <power/power_chrg.h>
Signature · 1 line
1.9.1
PATCH 1/1 power: pmic.h: Drop include <spi.h>
Quoted 9 lines · Jagan Teki
include/power/pmic.hnever used any generic spi code frominclude/spi.h, but this has been added in below commit. "dm: pmic: add implementation of driver model pmic uclass" (sha1:4d9057e82be11a862db411c4867e859fe0d4ca2a)Adding functionalities in
include/spi.hwill trigger a build issue as this been added used ininclude/power/pmic.hBuild issue on trats2 with adding BIT macro on
spi.h:
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160105/7fb875ce/attachment.sig>
PATCH 1/1 power: pmic.h: Drop include <spi.h>
In reply to Jagan TekiQuoted 20 lines · Jagan Teki
include/power/pmic.hnever used any generic spi code frominclude/spi.h, but this has been added in below commit. "dm: pmic: add implementation of driver model pmic uclass" (sha1:4d9057e82be11a862db411c4867e859fe0d4ca2a)Adding functionalities in
include/spi.hwill trigger a build issue as this been added used ininclude/power/pmic.hBuild issue on trats2 with adding BIT macro on
spi.h:
----------------------------------------------------
CClib/asm-offsets.s
In file included frominclude/power/pmic.h:15:0,from include/power/max77686_pmic.h:11, from include/configs/trats2.h:212, from include/config.h:5, from include/common.h:18, from lib/asm-offsets.c:15:
include/spi.h: In function 'spi_w8r8':include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration]
Quoted 7 lines
Cc Simon Glass <[email protected]>Cc Przemyslaw Marczak <[email protected]>Reported-by Tom Rini <[email protected]>Signed-off-by Jagan Teki <[email protected]>--- include/power/pmic.h | 1 - 1 file changed, 1 deletion(-)
I suppose we could do i2c.h also?
- Simon
PATCH 1/1 power: pmic.h: Drop include <spi.h>
Quoted 29 lines · Simon Glass
Quoted 20 lines · Jagan Teki
include/power/pmic.hnever used any generic spi code frominclude/spi.h, but this has been added in below commit. "dm: pmic: add implementation of driver model pmic uclass" (sha1:4d9057e82be11a862db411c4867e859fe0d4ca2a)Adding functionalities in
include/spi.hwill trigger a build issue as this been added used ininclude/power/pmic.hBuild issue on trats2 with adding BIT macro on
spi.h:
----------------------------------------------------
CClib/asm-offsets.s
In file included frominclude/power/pmic.h:15:0,from include/power/max77686_pmic.h:11, from include/configs/trats2.h:212, from include/config.h:5, from include/common.h:18, from lib/asm-offsets.c:15:
include/spi.h: In function 'spi_w8r8':include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration]Quoted 7 lines
Cc Simon Glass <[email protected]>Cc Przemyslaw Marczak <[email protected]>Reported-by Tom Rini <[email protected]>Signed-off-by Jagan Teki <[email protected]>--- include/power/pmic.h | 1 - 1 file changed, 1 deletion(-)
Quoted 3 lines
Acked-by Simon Glass <[email protected]>I suppose we could do
i2c.halso?
Tom, I'm taking this as part of u-boot-spi as I have two more fixes - all + previous PR will send it again, any concerns?
thanks!
Signature · 1 line
Jagan.
PATCH 1/1 power: pmic.h: Drop include <spi.h>
Quoted 30 lines · Jagan Teki
Quoted 29 lines · Simon Glass
Quoted 27 lines · Jagan Teki
include/power/pmic.hnever used any generic spi code frominclude/spi.h, but this has been added in below commit. "dm: pmic: add implementation of driver model pmic uclass" (sha1:4d9057e82be11a862db411c4867e859fe0d4ca2a)Adding functionalities in
include/spi.hwill trigger a build issue as this been added used ininclude/power/pmic.hBuild issue on trats2 with adding BIT macro on
spi.h:
----------------------------------------------------
CClib/asm-offsets.s
In file included frominclude/power/pmic.h:15:0,from include/power/max77686_pmic.h:11, from include/configs/trats2.h:212, from include/config.h:5, from include/common.h:18, from lib/asm-offsets.c:15:
include/spi.h: In function 'spi_w8r8':include/spi.h:327:2: warning: implicit declaration of function 'BIT' [-Wimplicit-function-declaration]Cc Simon Glass <[email protected]>Cc Przemyslaw Marczak <[email protected]>Reported-by Tom Rini <[email protected]>Signed-off-by Jagan Teki <[email protected]>--- include/power/pmic.h | 1 - 1 file changed, 1 deletion(-)
Quoted 6 lines
Quoted 3 lines
Acked-by Simon Glass <[email protected]>I suppose we could do
i2c.halso?Tom, I'm taking this as part of u-boot-spi as I have two more fixes - all + previous PR will send it again, any concerns?
Yes, it's simply too close to the release to make that level of change. I'll take the SPI PR with this applied after the release. If there's any critical bugfix only things please put them in a new PR. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160107/30cf5fb7/attachment.sig>